Hi there! You are currently browsing as a guest. Why not create an account? Then you get less ads, can thank creators, post feedback, keep a list of your favourites, and more!
Quick Reply
Search this Thread
Lab Assistant
Original Poster
#1 Old 16th Sep 2005 at 5:21 AM Last edited by zx1111 : 16th Sep 2005 at 5:28 AM.
Default New in NL : binary Lua script. (decompiled/deassembled)
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..

.
Attached files:
File Type: zip  Sim2NL-ObjectScript.zip (158.3 KB, 106 downloads) - View custom content
Advertisement
One of those Maxoids
#2 Old 16th Sep 2005 at 6:29 PM
Quote: Originally posted by zx1111
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. =)
Retired Moderator
retired moderator
#3 Old 16th Sep 2005 at 8:28 PM
Ok ill be the dolt who asks but what exactly is a Lua file?

For all of my creations and more free downloads please visit Exnem Sims
Grand Re-Opening NOW!!!
Come join our Banner Contest Today!!
Warrior Gryphon
site owner
#4 Old 16th Sep 2005 at 8:34 PM
Ohhh! Lua! *drools*

Nice one Tom :D

Story books are full of fairy tales, of Kings and Queens, and the bluest skies.
Lab Assistant
Original Poster
#5 Old 17th Sep 2005 at 3:14 AM Last edited by zx1111 : 17th Sep 2005 at 4:55 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.
One horse disagreer of the Apocalypse
#6 Old 18th Sep 2005 at 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!)

"You can do refraction by raymarching through the depth buffer" (c. Reddeyfish 2017)
Back to top