vincentlancon on 21/3/2015 at 22:55
Any guides on how to go through the process of naming an object, I could not find anything in the tutorials, only a brief mention of the objnames.txt in setting up a file structure but not sure how to use it.
Say I have a key and I want it to be called graveyard key in the inventory, how would I go about naming it in the objnames.str text?
Kurhhan on 21/3/2015 at 23:33
In Dromed, key properties :
Inventory --> Object Name --> Name_graveyardkey: "Graveyard Key"
No need to edit the str file if you do not do a multi-language version.
darthsLair on 21/3/2015 at 23:37
Quote Posted by vincentlancon
Any guides on how to go through the process of naming an object, I could not find anything in the tutorials, only a brief mention of the objnames.txt in setting up a file structure but not sure how to use it.
Say I have a key and I want it to be called graveyard key in the inventory, how would I go about naming it in the objnames.str text?
Create a folder, and name it-strings. In this folder, create a folder and name it english. Place objnames.str in this folder. You could use the T2 original objnames.str
In the properties of your object go to: Inventory>Object Name. In the field type:Name_YourObj:"Your Object Name" I usually right click and copy, then open up objnames.str, and then just paste into it.
To have a portion of the list for your mission:
Open up the objnames.str and at the bottom type:
;my mission name
Name_Object:"My Object"
Type it exactly as it appears in your object/Inventory field. Save the objnames.str
You can create your own objnames.str using text pad or such.
1.Open up the word pad
2.Use the save option in the upper left corner.
3.Save as
4.In the field type: "objnames.str" (use the quotation marks"
5.It just created a STR file, so you can delete the word pad file.
R Soul on 22/3/2015 at 01:36
Quote Posted by darthsLair
In the properties of your object go to: Inventory>Object Name. In the field type:Name_YourObj:"Your Object Name" I usually right click and copy, then open up objnames.str, and then just paste into it.
That only works by accident.
Property in Dromed: Name_YourObj
(nothing else)
Quote:
You can create your own objnames.str using text pad or such.
That's a bad idea. Creating a new file with just the FM's object names would cause all the originals names to disappear. The correct thing to do is extract the original objnames.str from strings.crf, define new object names (e.g. Name_YourObj: "Your object name"), then save it to Thief2\strings\english\objnames.str
(or Thief2\FMs\FMname\strings...)
Do this even if you have no plans for a multilanguage version. Someone else may offer to do a translation after the FM is released.
darthsLair on 22/3/2015 at 02:10
Quote Posted by R Soul
That only works by accident.
You mean for the last twelve years of never having an error in my object naming this is by accident? Can you clarify what you consider to be an accident?
LGS did it this way, and I copied their way. NewDark doesn't seem to handle any differently either. I just released 2 more fms, and have never had a problem with it.
I suggested to use the original objnames.str, and start at the bottom. Especially for a beginner, it is wise.
I have never had a problem with making my own .Sch, and .str files.
Yandros on 22/3/2015 at 04:24
I also prefer to do it using Name_Obj: "My Object" because that way the engine will use the literal string there in the case where it can't find the variable name in objnames.str in the current language. So, if someone translates your objnames.str into a new language but somehow misses one of the values, then the player will at least see an English name instead of none at all.
LarryG on 22/3/2015 at 05:02
Huh. I hadn't thought of that. I never hard code the name in the gam. Maybe I should reconsider ...
vincentlancon on 22/3/2015 at 05:24
Quote Posted by Kurhhan
In Dromed, key properties :
Inventory --> Object Name --> Name_graveyardkey: "Graveyard Key"
No need to edit the str file if you do not do a multi-language version.
Thanks Kurhhan, I chose this method because it is the most simple. I like that. :)
R Soul on 22/3/2015 at 20:08
Quote Posted by darthsLair
You mean for the last twelve years of never having an error in my object naming this is by accident? Can you clarify what you consider to be an accident?
Oh my, I may have made a mistake. I thought that specifying the name in the property would overwrite the name in the .str file, making mulitlanguage support impossible, but I just did a quick test and saw that the opposite is true.
When you said "You can create your own objnames.str using text pad or such." I thought you were suggesting to start from a blank file.
Yandros on 22/3/2015 at 23:12
I used to think that too but did the same test myself some years ago to make sure. And I also thought darthslair meant starting objnames from scratch, which would be a big no-no.