PDA

View Full Version : New in NL : binary Lua script. (decompiled/deassembled)


zx1111
16th Sep 2005, 5:21 AM
Compiled Lua scripts (object) are found in NightLife in "The Sims 2 Nightlife\TSData\Res\ObjectScripts" folder.

List of files are as follows:

AttractionScore.objLua
CarBlockingStreet.objLua
ColumnsConnected.objLua
ConnectMyNeighbors.objLua
ConnectedColumns.globalObjLua
ConstantAccess.objLua (?)
DiningSort.objLua
DoesSimHaveAGroup.objLua
DrivewayAdjacency.objLua
DrivewayGlobals.globalObjLua
FadeHelper.objLua
FindAdjacentLocation.objLua (?)
GarageGlobals.globalObjLua (!)
GaragePlacement.objLua (!)
GetValidDowntown.objLua
Global.globalObjLua
HomeLotInfo.objLua (!)
InteractionQueue.objLua
MTInit.objLua
NPC_Constants.globalObjLua (!)
NPC_IsType.objLua (?)
Neighbor.globalObjLua
ObjectData.globalObjLua (!)
ObjectDefinition.globalObjLua (!)
OutfitData.globalObjLua (!)
Percentage.objLua (!)
PersonData.globalObjLua (!)
PersonalTraits.objLua
PokerCompareHands.objLua (?)
PokerScoreHand.objLua
SaveEnabled.objLua (!)
SetMotiveDecay.objLua
TableSort.objLua
TransitionsEnabled.objLua (!)
TurnOnOffCount.objLua

They seems to be all Lua 5.0 binary, which can be disassembled with "Lua 5 binary chuck disassembler" ( http://luaforge.net/projects/chunkspy ) or decompiled by "Lua decompiler" ( http://luaforge.net/projects/luadec ).

File marked with (!) means that it can be successfully decompiled, (?) means decompiler did only partial success. All other unmarked file can not be decompiled at all. All files can be deassembled successfully.

The decompiled/deassembled result are attached in this posting.

Good food for start some modding, I think..

.

MaxoidTom
16th Sep 2005, 6:29 PM
Compiled Lua scripts (object) are found in NightLife in "The Sims 2 Nightlife\TSData\Res\ObjectScripts" folder.

You guys *finally* found them. I thought they would be found within the first day. =)

LyricLee
16th Sep 2005, 8:28 PM
Ok ill be the dolt who asks but what exactly is a Lua file?

Delphy
16th Sep 2005, 8:34 PM
Ohhh! Lua! *drools*

Nice one Tom :D

zx1111
17th Sep 2005, 3:14 AM
Lua is a programing language which is used widely in game industry.
It is designed for light-weight interpreted script lanuage , embeded in application.
Lua was extensively used in "SimCity 4" development by Maxis and other big games like Baldur's Gate (Bioware), Monkey Island (Lucas Arts), Homeworld(Relic Ent.).
Lua, Python, Ruby (mostly Japanese game) are the most frequently used lanuages for scripting layer in game development.
See http://www.lua.org for more information.

Inge Jones
18th Sep 2005, 9:04 AM
Ah thank you! I was just wondering what I was going to do about those! And there are some new primitives calling them, has anyone worked out what the other new primitives are? (now that we no longer have the behaviour globals - grrrr!)