forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

w00t, GTA: LCS uses Lua!

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
Gary13579



Joined: 15 Aug 2005
Posts: 93

PostPosted: Wed Oct 26, 2005 10:17 am    Post subject: w00t, GTA: LCS uses Lua! Reply with quote

I was poking around the GTA ISO just a few minutes ago, looking for what videos to rip to get it to work.
A few folders down, I noticed something weird..

There is a folder PSP_GAME/USRDIR/LUASCRIPTS in the ISO!
I've tried editing the files, and it looks like they are compiled somehow, but still... WOW.

Now, if we can get someone more expeirienced to de-compile these files, it may be possible to make custom game types :D

Files in here include CAPTRUETHEFLAG.LUA.LC, COMMENTARY.LUA.LC, PICKUPS.LUA.LC, STDLIB.LUA.LC, SPAWN.LUA.LC, and others.
Check out the ISO if you can.

Sorry for posting this here, but since it is PSP related, and Lua related, it just made sense..
Back to top
View user's profile Send private message
Mr Billy



Joined: 26 Oct 2005
Posts: 10

PostPosted: Wed Oct 26, 2005 10:23 am    Post subject: Reply with quote

hmmm... why would a big game developer use a high end language for their games? lua is a great language, but it cant compare to c or c++ in game programming. its like using visual basic to make a direct x game. it just shouldnt b done.

can anyone that has LCS confirm that this is truely lua code. if so, let the hacking begin!
_________________
"There is no spoone"
-The Matricks
Back to top
View user's profile Send private message
Gary13579



Joined: 15 Aug 2005
Posts: 93

PostPosted: Wed Oct 26, 2005 10:35 am    Post subject: Reply with quote

I don't think you understand me..
Only certain parts of the game use Lua, and the rest is C++.

Maybe they let their 12 year old kids code parts of the game, but they couldn't understand C++ :) ??
Back to top
View user's profile Send private message
Mr Billy



Joined: 26 Oct 2005
Posts: 10

PostPosted: Wed Oct 26, 2005 10:41 am    Post subject: Reply with quote

no i understood you that its only a small part of the game, but i still wonder why they would use a high end language.
_________________
"There is no spoone"
-The Matricks
Back to top
View user's profile Send private message
cheriff
Regular


Joined: 23 Jun 2004
Posts: 262
Location: Sydney.au

PostPosted: Wed Oct 26, 2005 10:52 am    Post subject: Reply with quote

for things like scripting cutscenes, game rules, etc.. makes dev cycle much quicker if you dont have to rebuild after every change - they just reload the script. (possibly even keeping a build of the game running)
Also, doing things like this lua eases the coder/artist gap. The hardcore c guys provide a nice lua interface to the game engine so the level designers and cutscene animators, etc can do their thang without too much fuss.
_________________
Damn, I need a decent signature!
Back to top
View user's profile Send private message
bengarney



Joined: 22 Oct 2005
Posts: 24

PostPosted: Wed Oct 26, 2005 11:17 am    Post subject: Reply with quote

Having scripting languages in your game is a time-honored tradition - almost every major game engine has a scripting language embedded in it. LUA is a popular choice because it's flexible and easily embedded though many engines have custom languages that fit their need more exactly.

It's a good move - scripting languages let artists & other non-coders get more easily involved, lets you do rapid test cycles without recompiles (for instance, in an XBox 360 title I work with, we can telnet into a running game and issue script commands to tweak game behavior), and often makes the game more robust as it's easier to recover from a scripting error.

Scripting languages can also carry the benefit of letting you port easily - just get the core runtime of your game going and the scripts "just work." The game engine I work with is neat because once we get it up and running on a platform, you can run the exact same game code on that platform as you do on any other; they're even network compatible.

Scripting languages rule. :)
Back to top
View user's profile Send private message
LuMo



Joined: 21 Aug 2005
Posts: 410
Location: Austria

PostPosted: Wed Oct 26, 2005 6:45 pm    Post subject: Reply with quote

you can compile lua scripts to binary using luac, maybe (i don't know) you can decompile it again (as it is possible in JAVA)

greets
lumo
_________________
"Good artists copy, great artists steal."
Pablo Picasso
go2lumo.com
Back to top
View user's profile Send private message Visit poster's website
bengarney



Joined: 22 Oct 2005
Posts: 24

PostPosted: Thu Oct 27, 2005 2:12 am    Post subject: Reply with quote

Worst case, you can dump the LUA bytecode - it's most likely higher level than normal assembly, and the compiler's typically a lot less smart, so you should be able to easily work out what's going on with some pencil & paper work.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group