Hey thoughty, This is a list of all the attributes you can modifiy in the game, these can be used in research to upgrade values or in multipliers in ships and subsystems. They don't really belong in function reference, can you put them in a new section or something?
Luac is giving me a headache! ^_^;; I'm trying to modify the resources directory in the Homeworld2.big, but even looking at any lua code makes me want to fall asleep; is there any guide out there to translating those scripts by hand? Either way, I'd love to get a hold of that utility that lefthandblack created for his data.zip translations...
-Bakuras
(Bakuras@strange-earth.com)
No kidding? I guess I'm out of luck :( I've never even heard of LUA before, but I suppose that the actual source looks a lot like most other languages... Still, I have no idea where to start with the dumps that your modified Luac gives me. It's definately understandable, but I have no idea how to translate it into something Homeworld 2 will recognize. Should I try bribing LeftHandBlack to translate the rest of the big file for us? ^_^;;
On the CREATETABLE command in the output files, have you found out how it relates to the following lines? I know that CREATETABLE 1 followed by two strings relates to
{"X String" = "Y String"},
but I have no idea how this line works:
CREATETABLE 4
It's followed by the following values:
123 [37] PUSHINT 1
124 [37] PUSHNUM 6 ; 0.349
125 [37] PUSHNUM 7 ; 0.199
126 [37] PUSHINT 1
127 [37] SETLIST 0 4
128 [37] SETTABLE 3 3
So two integers and two numbers(floats?), but how does that output in script?
Maybe
{1},{0.349},{0.199},{1},
But then that doesn't make any sense at all :(
Possibly:
{1,0.349,0.199,1},
But why not just push it normally "1,0.349,0.199,1"?
Really driving me for a loop. Any thoughts?
By the way, you were right about translating these things taking forever!
I'm localizing HW2 into CHinese but encounter some BIG PROBLEM (together with some ppl from countries using weird charactors).
The default font file (*.rcf) isn't able to display Chinese (and Russian, Japanese), they are just displayed as "?".
If we bypass *.rcf by renaming their extend name *.rcf to rc1, the charactors are displayed RIGHT, but VERY VERY small that no one can recognize them.
I've mentioned that there are some special tags in *.ucs, such as <b> and <c>. These 2 are to make the text bold and change their color.
So I wonder if there is a tag that can enlarge the text? If that is possible, we are all done.
BTW, there are some error logs in hw2.log
No mapping for font 'default' - using 'default'
No mapping for font 'ButtonFont' - using 'default'
No mapping for font 'Heading3Font' - using 'default'
No mapping for font 'Heading4Font' - using 'default'
No mapping for font 'ChatFont' - using 'default'
No mapping for font 'SPSubtitleFont' - using 'default'
No mapping for font 'GenericSubtitleFont' - using 'default'
No mapping for font 'LocationCardFont' - using 'default'
I wonder if I can map those fonts directly to TTF fonts that the OS uses.
And about the 'default' font, if I could change it, the chars may be larger then, right?
Expecting your reply!!! THX!
My mail is jeff_qin_chen@hotmail.com
-- 218.2.174.8 (2003-11-04 21:07:59)
Could you add this link? I can't figure out how. http://lua-users.org/wiki/TutorialDirectory
Also, could you create a mapping section (unless you feel thi is unnecessary).
-Mikail
hi there.
I thought the LuaC is supposed to encrypt the decryped .lua files that are found all about after extracting the homeworld2.big.
Now i cant get the LuaC.exe to work... whats the deal here ?
-- blf2-t1-2.mcbone.net (2003-11-18 14:27:36)
I'm afraid you'll need to provide more information before I can help you.
ok me again
i put the luac.exe in my folder which is called "AI" (extracted one)
i make a new shortcut to the luac.exe. in the end i have a command line which looks like this
"F:\Homeworld2\Extractor\Homeworld2.big\ai\LuaC.exe -o cpumilitary.lua > test.lua"
Now when i start the programm, a small black window pops up and immediatly closes again (just like starting dos programms)
Afterwards there is NO test.lua file in my AI folder (which should include the encoded cpumilitary.lua)
what am i doing wrong ? im using WinXP btw.
-- blf2-t2-2.mcbone.net (2003-11-22 03:49:12)
I don't know if shortcuts support command-line arguments like that (the > test.lua).
I suggest opening up a console (aka DOS Box) and running it from there.
After Unicron's recent outburst about leaving i have made a simple tutorial on adding a ship to the game. Would you mind checking it for me? It works but sometimes a forget to add things i do without thinking about them.
Could you change the background color of code boxes (you can see one in the Formatting Guideline) so that it doesn't have a background color?
The white-on-blue is kind of blinding. The color of form fields (like the Attach Comment box, below) is set by the Windows theme, which is ok.
The horizontal rules weren't affected. I guess they aren't between the comments. You can see one at the top of the tutorials page, after the IMPORTANT NOTE..
That's exactly the code box I meant. However, the background is white for everyone, when it should vary depending on what value has been set for the Window background color in Display Properties (right-click on your Desktop to access it).
You should notice that the "Attach Comment" text-input fields DO change color accordingly, which is the correct behavior.
Yes, that is better. Thanks!
If the very first change you made (when i thought the gap seperating the comments was a horizontal rule, when in fact it wasn't) were changed back to the way they were, it would look better.
Hi,
I was wondering if you could make wiki text within tags use the HTML <pre> tag instead of just changing the font. The <pre> tag preserves indentation (tab spaces), while normal <div> tags do not. I'm not sure what the CSS equivelent is. I could go look it up...
What I meant by "preserving indentation" is, that, when you select the text using your mouse and try to copy it to a text file, the indentation is not preserved (even though it is displayed). This does not occur when the <pre> tag (or its CSS equivelent) is used.
Well, this information is free for the taking, just make sure you provide due credit to the authors of the pages, and this Wiki if that information originated here.
I was wondering if you could create a ZIP archive of the Wiki function reference and pu it up online for download. I'd like to work on it a bit, but offline.
If you could save them in HTML format, minus all the extra Wiki stuff, that would be great.
Thanks,
Mikail
-- milton.monroe.lib.in.us (2004-09-17 15:08:58)
D'oh, forgot about this.
I'm not sure how I could do that, I could probably however do it in the Wiki's format.
Would prefer HTML...
Or, if you could configure the wiki to output all the function references to a single (very long) page, I could then save the HTML file to disk.
i am trying to make a mod consisting of the files for SSM, EX Pirates and PDS, and umm..... ive tried... ive used RDN toold to make it a .BIG, but every time a load it it just doesnt show up any races or anything... just average HW2 menu... and when i go 2 player v CPU none of my races are there... and yet its obviously loads because there are no movies.. i set that and when i go onto gamespy.. and try to join a game it says missing mod hw2Supamod (my mod :)) and i just cant get it to work!!!!!!!!! :S
-- 81.168.52.66 (2004-12-07 06:50:47)
modder*
-- 81.168.52.66 (2004-12-07 06:52:31)
to contact me plz e-mail tim@hanstock.co.uk.. i check that more :> for the above two messages
The new version of the wiki screws up pages (most of the function reference) that use the greater-than and less-than symbols. Could you fix this please?
Also, the TAB sizes seem to be different in the wiki source than in the output of the special 'code' blocks. Compare the source of this page with the output. The columns no longer line up.
The underlining in this page (MappingTutorialResources) seems to be screwed up, now, as well. It seems to happen when a colon precedes an underscore ...or something like that.