Ranger-X

Franklin joined Aug 16, 2011

I am pondering whether it is a good idea to upload any work on here. I know this website encourages creativity, but it is a website by definition: this means anyone can access the mods (nothing is really private on the internet). This is why I distrust this place: theft is too common and easy to do. The rational choice is to simply not submit any work so no one else can use it. I refuse to upload any mods, but I will still show my concept diagrams and demo videos from my YouTube channel. That is still OK as long as I give credit for any materials I use in the videos or artwork.

Latest Media

We're sorry, but no images, videos or audio files have been added to this gallery.

If you would like to share media with the community, sign up and you can.

Blog RSS Feed Report abuse Latest Blog: My C&C Generals Programming Tutorial

0 comments by Ranger-X on May 4th, 2014

This is a neat step-by-step trick I like to use to remove any wasted space or comments from the INI text files so my game can run faster.

How to delete comments and wasted space in Command & Conquer Generals Files.
File used in tutorial: FactionBuilding.INI.

Step 1. Find the desired file and move it to MS Word.
Open FactionBuilding.INI using WordPad (or Notepad). Copy all text to Microsoft Word and open Find and Replace window (CTRL+H). If you need to, click the Show/Hide ¶ (paragraph) button on the Standard toolbar to show the special symbols.

Step 2. Remove spacing before semicolons.
Enter:
Find What:      | ;|
Replace with:   |;|
Note: | is not part of the search boxes. Enter what is between the | symbols.
Click Replace All until 0 replacements have been made.

Step 3. Remove spacing between semicolons and new lines.
Click More button, check Use wildcards box in Search Options pane and Enter:
Find What:      |;*^13|
Replace with:   |;^13|
Click Replace All one time.

Step 4. Move the semicolons down one line.
Clear the Use wildcards box and Enter:
Find What:      |;|
Replace with:   |;^p|
Click Replace All one time.

Step 5. Delete all semicolons.
Enter:
Find What:      |;|
Replace with:   ||
Click Replace All one time.

Step 6. Delete any spaces between empty lines.
Enter:
Find What:      |^p^w^p|
Replace with:   |^p^p|
Click Replace All one time.

Step 7.
Copy text back to FactionBuilding.INI. Copy text back to Microsoft Word again. Otherwise, return spaces will remain above the first Object block.

Step 8.
Enter:
Find What:      |^p^p|
Replace with:   |^p|
Click Replace All one time.

Step 9. Remove any extra spacing before equals signs.
Enter:
Find What:       |  = |
Replace with:    | = |
Click Replace All until 0 replacements have been made.

Step 10. Add a new line between each block of code to make it easier to read.
Enter:
Find What:       |End^pObject|
Replace with:    |End^p^pObject|
Click Replace All one time.

Step 11.
Copy text back to FactionBuilding.INI. Check for any semicolons or extra spacing after characters. Don't forget to save your work! :)

Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Level
Avatar
Avatar
Offline Since
Jul 10, 2014
Country
United States United States
Gender
Anonymous
Member Watch
Track this member
Statistics
Activity Points
560
Rank
4,132 of 468,504
Watchers
0 members
Time Online
1 second
Comments
0
Site Visits
2,312
Profile Visitors
30,478 (2 today)
Contact
Private Message
Send Now
Email
Members Only

No one is friends with Ranger-X awww. You should invite your mates to the site, or make new ones.