|
|
|
|
# 1
|
|
Lost in the Web...
Join Date: Jun 2003
Location: %HW2_ROOT%
|
RDN Lua scripts - versions
Question: which lua scripts in the RDN Tools are not for the 1.1 version?
I ask this because it would be better to inlcude those in the DataZip package, as they're commented (and probably less liable to crash). |
|
|
|
|
# 2
|
|
Lost in the Web...
Join Date: Jun 2003
Location: %HW2_ROOT%
|
I tried comparing the creation date of the files, but they're all the same.
I could create a Lua script that compares whether tables are identical, but this wouldn't work for non-table data. I could strip comments, pretty-print them, and then diff them; but there may be differences -- not to mention bugs -- introduced by LuaDC. (I don't know.) Last edited by Mikail : 12th Apr 06 at 6:17 AM. |
|
|
|
|
# 4
|
|
Lost in the Web...
Join Date: Jun 2003
Location: %HW2_ROOT%
|
Hmmm. Thanks, I'll take a look.
I thought of one method of comparing the files: I can compile the scripts in the RDN tools and then compare them with the files in 'Homeworld2.big'. The compiled files should be identical if they're from the same version. Do you know of a batch diff utility? Last edited by Mikail : 12th Apr 06 at 7:43 AM. |
|
|
|
|
# 6
|
|
Lost in the Web...
Join Date: Jun 2003
Location: %HW2_ROOT%
|
By re-pretty-printing the scripts (using v1.23 of my pretty-printer) in the current DataZip and the RDN Tools -- this time also stripping comments -- and then comparing them using WinMerge, I was able to see whether or not they're identical.
These are my results: (Any comments appearing below a file name refer to the RDN Toolkit versions of the files, unless otherwise noted.) Unresolved differences: (These differences are probably due to the RDN versions being pre-patch) Code:
Buggy decompiled files: (These issues hinder the comparison of the files.) Code:
(The decompiled versions of these files have improperly-indexed tables. Hard to spot!) Code:
Some minor syntactical differences (but functionally equivalent): (Common differences include differently parenthesized maths or differently quoted strings.) Code:
(The RDN versions of the following files have instances of empty table-entries containing only semi-colons. I believe them to be inconsequential.) Code:
(Many UI scripts use semi-colons to separate table-entries with indices of differing types. Omitting these causes the game to crash -- though, ironically, it poses no problems to the stand-alone Lua interpreter. Therefore, they cannot be removed automatically by the pretty-printer. The following files would need to be edited by hand in order to remove semi-colons at the end of lines -- a cosmetic issue.) Code:
Identical: (The pretty-printed versions of these files have no differences, whatsoever.) Code:
Last edited by Mikail : 21st Mar 08 at 10:51 PM. |
|
|
|
|
# 8
|
|
Lost in the Web...
Join Date: Jun 2003
Location: %HW2_ROOT%
|
I just re-compared all the files using the CFLuaDC'd versions.
These files in the RDN package are outdated and should not be used: Code:
|
|
|
|
|
# 9
|
|
Lost in the Web...
Join Date: Jun 2003
Location: %HW2_ROOT%
|
Here's a detailed comparison of the files and folders contained in "Homeworld2.big" and the RDN Toolkit:
These files exist in the RDN Toolkit but not in "Homeworld2.big": Code:
These files exist in "Homeworld.big" but not in the RDN Toolkit: Code:
|
|
|
|
|
# 10
|
|
Lost in the Web...
Join Date: Jun 2003
Location: %HW2_ROOT%
|
Just out of curiosity, I compared the contents of the Homeworld 2 RDN Toolkit and the Homeworld 2 RDN Toolkit Update (both available here, at FilePlanet) by installing them into different directories and comparing them using a program called WinMerge (similar to WinDiff).
The files in the "Data" directory that are common to both installations are identical. E.g., the scripts "updated" using the updator aren't any different than those installed by the original installer. Someone must have screwed up when packaging the installer. |
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|