.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1  
Old January 22nd, 2007, 01:42 AM
President_Elect_Shang's Avatar

President_Elect_Shang President_Elect_Shang is offline
Brigadier General
 
Join Date: Nov 2001
Location: WA
Posts: 1,894
Thanks: 5
Thanked 3 Times in 3 Posts
President_Elect_Shang is on a distinguished road
Default Work on MainStrings.txt

Who else has been modding the MainStrings.txt file. I was just working on it and I think other resources can be added to the game. I am not up to trying it yet. I have other work to do with the SFTC. However if I am reading the lines right new things can be added. For example I have already changed the game so it no longer looks for:

Space Combat Turn Rate Decrease Per kT
Instead it wants:
Space Combat Turn Rate Decrease Per HS

And that is just one example of what I have changed. If I can turn the game to look for a new line than I should be able (with enough empty lines in the right places) script a new resources. Or many other things for that matter.

Back on track! Sorry this is all pretty thrilling for a modder to find. Anyway has anyone else tried this yet? What have you changed about the MianStrings.txt. Didn't the Wiki page say something about it can't be changed? Am I alone in this stuff?
__________________
President Elect Shang; Tal-Re Republic of Free Worlds
Welcome to Super Vegeta’s Big Bang Attack… Welcome to OBLIVION!
“Don Panoz made an awesome car and… an incinerator” Bill Auberlen
Reply With Quote
  #2  
Old January 22nd, 2007, 02:22 AM
Captain Kwok's Avatar

Captain Kwok Captain Kwok is offline
National Security Advisor
 
Join Date: Oct 2001
Location: Toronto, Canada
Posts: 5,623
Thanks: 1
Thanked 14 Times in 12 Posts
Captain Kwok is on a distinguished road
Default Re: Work on MainStrings.txt

Mainstrings.txt only controls how strings are interpreted. For example, you could change the name of the ability "Master Computer" to "Command Computer", which means you would have to change the Master Computer entry in Components.txt to use the ability "Command Computer", but it would still do the same thing as it did before. It's only really useful for making translations, such as if you were making a German version, you'd want to re-name all the abilities to German names etc. Alternatively you could re-name resource types but you wouldn't be able to add any new ones.
__________________
Space Empires Depot | SE:V Balance Mod
Reply With Quote
  #3  
Old January 22nd, 2007, 10:01 AM

Raapys Raapys is offline
First Lieutenant
 
Join Date: Jan 2005
Posts: 689
Thanks: 0
Thanked 0 Times in 0 Posts
Raapys is on a distinguished road
Default Re: Work on MainStrings.txt

Yeah, I've tried, and it looks like it's impossible to add anything to that file: the main executable expects it to be of a certain size so it wont let you start the game if you do add something.
Reply With Quote
  #4  
Old January 22nd, 2007, 10:11 AM
President_Elect_Shang's Avatar

President_Elect_Shang President_Elect_Shang is offline
Brigadier General
 
Join Date: Nov 2001
Location: WA
Posts: 1,894
Thanks: 5
Thanked 3 Times in 3 Posts
President_Elect_Shang is on a distinguished road
Default Re: Work on MainStrings.txt

I know you can't add any new lines. I tried and it does complain. However, in this case I found open lines so you are not adding any new ones. I would agree with you CPT Kwok except by adding there I think you can script it elsewhere then have SE5 act on the instructions we have given. There are a few references in the first pdf he put out with the 1.20 patch (?) that mention scripting and defining functions. I think as long as we add an entry here SE5 wont complain if that entry is added elsewhere. I'm not saying you can get planets to mine the base three and another new one. More like you can get SE5 to treat a new entry as a resource. I'm pulling from thin air based on speculation. If anything like that proves true can you imagine the possibilities? I said something about SE5 starting the Golden Age of modders but if this holds true or if Aaron can add it in for us saying Golden Age would be an understatement.
__________________
President Elect Shang; Tal-Re Republic of Free Worlds
Welcome to Super Vegeta’s Big Bang Attack… Welcome to OBLIVION!
“Don Panoz made an awesome car and… an incinerator” Bill Auberlen
Reply With Quote
  #5  
Old January 22nd, 2007, 01:22 PM
Captain Kwok's Avatar

Captain Kwok Captain Kwok is offline
National Security Advisor
 
Join Date: Oct 2001
Location: Toronto, Canada
Posts: 5,623
Thanks: 1
Thanked 14 Times in 12 Posts
Captain Kwok is on a distinguished road
Default Re: Work on MainStrings.txt

I don't think so. Each entry corresponds to a specific item like an ability or displayed text. The empty entries won't do anything because they are not currently used in the game. There's no way for us to code in a function to treat a new entry or even a current entry in a different way.

The coolness of MainStrings.txt lies in the fact that for a mod like Space Food Empires - I could rename the resources and even the abilities associated with them to what I wanted. For example, I change Minerals to Carbohydrates and so I would change the ability "Mined Resource Generation - Minerals" to something like "Resource Point Generation - Carbohydrates" etc.
__________________
Space Empires Depot | SE:V Balance Mod
Reply With Quote
  #6  
Old January 22nd, 2007, 05:59 PM
Suicide Junkie's Avatar
Suicide Junkie Suicide Junkie is offline
Shrapnel Fanatic
 
Join Date: Feb 2001
Location: Waterloo, Ontario, Canada
Posts: 11,451
Thanks: 1
Thanked 4 Times in 4 Posts
Suicide Junkie is on a distinguished road
Default Re: Work on MainStrings.txt

Or "Nutrient Extraction"
Reply With Quote
  #7  
Old January 22nd, 2007, 06:01 PM
Captain Kwok's Avatar

Captain Kwok Captain Kwok is offline
National Security Advisor
 
Join Date: Oct 2001
Location: Toronto, Canada
Posts: 5,623
Thanks: 1
Thanked 14 Times in 12 Posts
Captain Kwok is on a distinguished road
Default Re: Work on MainStrings.txt

Actually SJ, I've been waiting for you to rename the resource types etc. for your GGmod.
__________________
Space Empires Depot | SE:V Balance Mod
Reply With Quote
  #8  
Old January 22nd, 2007, 06:11 PM
President_Elect_Shang's Avatar

President_Elect_Shang President_Elect_Shang is offline
Brigadier General
 
Join Date: Nov 2001
Location: WA
Posts: 1,894
Thanks: 5
Thanked 3 Times in 3 Posts
President_Elect_Shang is on a distinguished road
Default Re: Work on MainStrings.txt

I have already done some renaming, so I knew that part.
__________________
President Elect Shang; Tal-Re Republic of Free Worlds
Welcome to Super Vegeta’s Big Bang Attack… Welcome to OBLIVION!
“Don Panoz made an awesome car and… an incinerator” Bill Auberlen
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 07:37 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.