Homeworld 2 : ThoughtProcess
Karos Graveyard ::
Function Reference :: Scope Reference :: Variable Reference
My name is Rick, I am 22 years old.

Please leave a comment on this page if you need something.
 Comments [Hide comments/form]
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?

MaxHealth
Speed
MaxSpeed
BuildSpeed
ShipHoldRepairSpeed
HealthRegenerationRate
WeaponAccuracy
WeaponDamage
ShieldRegenerationRate
MaxShield
HyperSpaceRecoveryTime
HyperSpaceTime
HyperSpaceCost
HyperSpaceAbortDamage
Capture
CloakingStrength
CloakDetection
CloakingTime
SensorDistortion
MaxSpeed
VisualRange
PrimarySensorsRange
SecondarySensorsRange
DustCloudSensitivity
NebulaSensitivity
ResourceCollectionRate
ResourceDropOffRate
ResourceCapacity
DefenseFieldTime
-- fw.relic.com (2003-10-08 10:58:58)
Did :)

I renamed the page that someone made to ModifiableValues.
-- ThoughtProcess (2003-10-10 15:23:19)
Who is that by the way? :O
-- ThoughtProcess (2003-10-10 15:23:44)
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)
-- ip68-98-86-179.ph.ph.cox.net (2003-10-15 07:24:16)
Not really, most of my ability comes from common sense, and understanding (somewhat, hehe), how the Lua stack works.
-- ThoughtProcess (2003-10-15 12:31:32)
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? ^_^;;
-- ip68-98-86-179.ph.ph.cox.net (2003-10-15 16:10:25)
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!
-- ip68-98-86-179.ph.ph.cox.net (2003-10-15 18:06:14)
Well...Hi there ;)

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
-- MiKail (2003-11-13 00:00:06)
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.
-- ThoughtProcess (2003-11-19 00:07:16)
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.
-- ThoughtProcess (2003-11-22 04:28:58)
ok, thanks dude, it works now !

ty again
-- blf2-t1-2.mcbone.net (2003-11-22 13:00:55)
Hey Thought, it's no big deal, but how did my "How to Create a New Missile Type" tutorial page become owned by you now?
-- RangerHW (2003-11-25 12:31:59)
I moved it, remember?
-- ThoughtProcess (2003-11-25 19:40:44)
Ahh, yes...heh, I didn't even notice that the ownership changed. Heh heh. It's all coo. :)
-- RangerHW (2003-11-26 00:58:23)
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.
-- cache1-ldst.server.ntli.net (2003-12-20 11:16:50)
Doh! See like that. Email me at steven.smith31@virgin.net
-- cache1-ldst.server.ntli.net (2003-12-20 11:17:39)
Hi, Thought. Sorry to bug ya, but could you make the horizontal rules a little bit thicker?
-- MiKail (2004-02-17 22:35:30)
Sure. I think i can do that.
-- ThoughtProcess (2004-02-18 04:56:57)
Err, wait, where?
-- ThoughtProcess (2004-02-18 04:57:43)
See the thin black line between every one of our comments?
-- MiKail (2004-02-18 21:55:38)
That better?

It wasn't black, ya' know. :)
-- ThoughtProcess (2004-02-19 01:01:13)
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.
-- MiKail (2004-02-19 18:17:22)
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..
-- MiKail (2004-02-19 18:20:34)
I think i'm confused of what you mean of code boxes, code boxes are like:

Code box.


They have white background and black text for me, your browser is bugged? Or i'm interpreting you wrong.

As for the Horizontal Rules, how's that? I increased it to 2 pixels vs 1 pixel before.
-- ThoughtProcess (2004-02-19 18:31:52)
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.
-- MiKail (2004-02-19 21:00:26)
They are not real textboxes, that is why.
-- ThoughtProcess (2004-02-19 23:26:55)
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.
-- MiKail (2004-02-20 01:00:17)
Nevermind, it's ok now.
-- MiKail (2004-02-20 01:07:21)
Hehe, i've gotten used to the gaps, I like it better than the old way.
-- ThoughtProcess (2004-02-20 03:10:16)
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...
-- MiKail (2004-03-06 01:01:24)
Woops. I meant wiki text in ## tags...
-- MiKail (2004-03-06 01:02:02)
-- MiKail (2004-03-06 01:02:18)
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.
-- MiKail (2004-03-06 01:10:23)
The CSS property is:

{white-space:pre;}

However, it doesn't seem to work in IE 6.
-- MiKail (2004-03-06 01:29:41)
Well, it only works in IE 6 in "strict" mode and not in IE 5 at all.
-- MiKail (2004-03-06 01:45:15)
Contact for web project desired.
Mainly for your permission granting, if necessary.
-- HomY (2004-03-11 06:09:07)
I'm... sorry? Did you translate that? Because i'm not sure what you are saying.
-- ThoughtProcess (2004-03-12 01:37:08)
well, you have a lot of info here so I figure I ask before I copy-paste the lot ;)
-- HomY (2004-03-16 04:18:16)
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.
-- ThoughtProcess (2004-03-18 10:03:09)
Thought and other Wiki contributers.

Thank you, this site is an invaluable resource to the Homeworld modder.

I'm not sure how to go about it, so here is what I did.

http://hw2.tproc.org/wiki/FunctionSobGroup_SetSpeed
SetSpeed does take values greater than 1. Is the way I;ve edited this ok or is there some standard procedure that I've overlooked?

Thanks Again.

-Rags
-- 69-161-139-28.miamfl.adelphia.net (2004-06-27 21:53:42)
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.
-- ThoughtProcess (2004-11-04 23:31:10)
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.
-- 156-56-145-191.dhcp-bl.indiana.edu (2004-11-09 23:24:03)
That was me, above. -Mikail
-- 156-56-145-191.dhcp-bl.indiana.edu (2004-11-09 23:24:32)
dear any mooder who knows what he/shes doing ;)

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
-- 81.168.52.66 (2004-12-07 06:53:01)
btw.. im swarm :)
-- 81.168.52.66 (2004-12-07 06:53:29)
Hey, not sure how to contact you.

Anyway
Seems this spammer is back
212.164.71.254

As well, this spammer in comments
220.227.152.36
-- Evaders99 (2005-01-26 16:20:21)
And again, 212.164.71.254
Perhaps you need a better block - ban the whole IP range on the server: 212.164.0.0 - 212.164.255.255
-- Evaders99 (2005-02-07 16:01:29)
Perhaps ban the n00bs playing around on the CommandLineParameters page
-- Evaders99 (2005-02-13 00:54:42)
Was wondering how you were coming along with the wiki auto-archive function? If you did it in the wiki's native format, that would be fine. -Mikail
-- milton.monroe.lib.in.us (2005-03-03 17:36:18)
Look at what they did with the home page :( I hope there's a backup.
-- SunTzu (2005-11-22 04:05:57)
Me too, I agree to SunTzu: Oh my god, what happened to that great page??? Dear owner ThoughtProcess please help! (And there's no email?) Best, Babbo
-- IBWL37.kfunigraz.ac.at (2005-11-22 04:16:56)
You can always undo their changes by going to the last revision

I've already posted on the Spam topic about IP range to ban
-- Evaders99 (2005-12-02 22:26:09)
Someone managed to edit a page without logging in.
-- MiKail (2006-04-23 01:54:00)
Where? Who?
-- ThoughtProcess (2006-04-23 23:20:38)
Oh that - that was before the move, I just didn't see it when deleting spam/vandalism.
-- ThoughtProcess (2006-04-24 03:40:33)
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?
-- MiKail (2006-06-21 09:28:57)
Can you show an example?
-- ThoughtProcess (2006-06-24 06:33:29)
Look at this page, starting with the Guard Ability.
-- MiKail (2006-06-28 22:10:19)
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.
-- MiKail (2006-06-28 22:12:40)
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.
-- MiKail (2006-07-03 01:37:58)
Lots of bots screwing stuff up :(
-- YaFn (2007-04-20 01:06:23)
:: ::