STRs and STR#s

How do you determine the ID of an STR from the STR# it's supposed to replace? According to the Nova bible, the STRs don't have the same ID.

Also, how do you create multiple entries on the same STR?

------------------
"How many boards would the Mongols hoard if the Mongol hoards got bored."
Useless facts:
hippopotomonstrosesquippedaliophobia is the medical term for "fear of long words"
(url="http://"http://www.EVula.com")why does everybody have an EVula link?(/url)

Appendix III - Patching STR# Resources


The STR# resource format used to store many of the strings in Nova may seem to
be incompatible with the flexible nature of plugin files. For example, a plugin
for a new ship would have to replace several of the built-in STR# resources to
incorporate its new name into the game. The problem arises when you want to use
two plugins that try to modify the same STR# resource.

The solution is not to change the STR# resources at all, but to use Nova’s handy
string patching functionality by updating only select strings in a STR# resource
by providing Nova with a properly-numbered 'STR ' resource. For example, to
change the first cargo type from food to something else, you’d simply create a
'STR ' resource with the ID 9000 and type in the name of your new commodity. A
chart of 'STR ' resource numbers is provided below:

String Type:                                        Replacement 'STR ' ID range:
Message buoys                                       1000-2500
Hail quotes                                         5000-5511
Stellar types                                       7000-7063
Base prices of commodities                          9300-9305
Commodity abbreviations for status display          9400-9405
Govt-specific greetings for comm dialog           10000-12559 (first 10 for
                                                    govt -1, second 10 for
                                                    govt 0, third 10 for govt
                                                    1, etc.)
përs-resource CommQuotes                          15000-15511

EDIT: What exactly are you trying to figure out? What are you trying to patch?

------------------
My (url="http://"http://www.evula.org/parrypmp")website(/url), hosted by (url="http://"http://www.evula.org")EVula(/url).
"I'm desperately trying to figure out why kamikaze pilots wore helmets." -- David Edison
"A bug in a program is merely an undocumented feature."

(This message has been edited by P-Psycho (edited 10-06-2002).)

Combat ratings, specific gov strings, certain përs' replies... and the new things. The only real problem is the Combat ratings and the fact that I can't make more than one entry on each string, so I don't know how I could rename anything but the first item of each string (ie. I could replace food but not any of the other cargos)

They also don't list quite a few things, such as all the ship titles.

------------------
"How many boards would the Mongols hoard if the Mongol hoards got bored."
Useless facts:
hippopotomonstrosesquippedaliophobia is the medical term for "fear of long words"
(url="http://"http://www.EVula.com")why does everybody have an EVula link?(/url)

(This message has been edited by Veritus Dartarion (edited 10-06-2002).)

Quote

Originally posted by Veritus Dartarion:
Combat ratings, specific gov strings, certain përs' replies... and the new things. The only real problem is the Combat ratings and the fact that I can't make more than one entry on each string, so I don't know how I could rename anything but the first item of each string (ie. I could replace food but not any of the other cargos)

I don't think combat ratings can be patched using STRs - you just copy the STR# resource and edit it. Each STR contains one entry, and you set the ID based on the table P-Psycho posted in order to determine which entry in the STR# it overrides. Examining the base scenario can also help.

Quote

Originally posted by Veritus Dartarion:
They also don't list quite a few things, such as all the ship titles.

Many of the things that used to be patched using STRs in the previous games are stored in the actual resource under EV Nova. Take a look in the resources relevant to the things you want to alter - the shďp resource, for example.

------------------
David Arthur
As Roosevelt said, there is nothing worse than the fear of fear. - (url="http://"http://pm.gc.ca/")Jean Chrétien(/url)
(url="http://"http://davidarthur.evula.net/")davidarthur.evula.net(/url) - Coming Soon: MissionComputer 1.4.0 with (url="http://"http://davidarthur.evula.net/showpic.php?image=mc/perseditor.jpg&width;=567&height;=405&title;=The+pers+Editor")përs(/url) support and enhanced file management.
(url="http://"http://www.ev-nova.net/")EV-Nova.net(/url) | (url="http://"http://www.evula.com/")EVula's Lair(/url) | (url="http://"http://www.evula.com/survival_guide/")EV Nova Survival Guide(/url) | (url="http://"http://www.evula.org/")evula.org(/url)

Quote

Originally posted by David Arthur:
**Many of the things that used to be patched using STRs in the previous games are stored in the actual resource under EV Nova. Take a look in the resources relevant to the things you want to alter - the shďp resource, for example.

**

Looking at the STR# resorce, it has entries like 'alien' or 'class 1', subtitles, although I'm not sure why they're there.Ver

------------------
"How many boards would the Mongols hoard if the Mongol hoards got bored."
Useless facts:
hippopotomonstrosesquippedaliophobia is the medical term for "fear of long words"
(url="http://"http://www.EVula.com")why does everybody have an EVula link?(/url)

Quote

Originally posted by Veritus Dartarion:
**Looking at the STR# resorce, it has entries like 'alien' or 'class 1', subtitles, although I'm not sure why they're there.Ver

**

What you're talking about are the ship subtitles, which can only be replaced with STR# resources. This is because the subtitle STR# resources don't have anything in them; they are just 1 or 2 words. So, to replace these, you create a new STR# resource in your plug with the same ID number.

------------------
Mantaray suggests: Karosine! The panacea for all your ills! boom

Quote

Originally posted by Veritus Dartarion:
Looking at the STR# resorce, it has entries like 'alien' or 'class 1', subtitles, although I'm not sure why they're there.Ver

I believe those are custom subtitles assigned to special ships by a mission.

------------------
David Arthur
As Roosevelt said, there is nothing worse than the fear of fear. - (url="http://"http://pm.gc.ca/")Jean Chrétien(/url)
(url="http://"http://davidarthur.evula.net/")davidarthur.evula.net(/url) - Coming Soon: MissionComputer 1.4.0 with (url="http://"http://davidarthur.evula.net/showpic.php?image=mc/perseditor.jpg&width;=567&height;=405&title;=The+pers+Editor")përs(/url) support and enhanced file management.
(url="http://"http://www.ev-nova.net/")EV-Nova.net(/url) | (url="http://"http://www.evula.com/")EVula's Lair(/url) | (url="http://"http://www.evula.com/survival_guide/")EV Nova Survival Guide(/url) | (url="http://"http://www.evula.org/")evula.org(/url)