Register    Login    Forum    Search    FAQ

Board index » Spellforce 1 » Mods




Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Decompiled LUA Scripts
 Post Posted: Sat Jul 07, 2012 2:20 pm 
Offline
User avatar

Joined: Sat Jul 07, 2012 2:08 pm
Posts: 3
Hi
Let there be decompiled scripts (not modifed) that would make it easier to start of modify it.


Top 
 Profile  
Reply with quote  
 Post Posted: Sat Jul 07, 2012 2:22 pm 
Offline
User avatar

Joined: Sat Jul 07, 2012 2:08 pm
Posts: 3
At the moment I was able to decompile AI, for all levels of campaigns and for Free Game (just spawning)

Others I could not get to decompile...


Top 
 Profile  
Reply with quote  
 Post Posted: Sun Jul 08, 2012 10:01 am 
Offline
Site Admin
User avatar

Joined: Sun Nov 13, 2011 2:57 pm
Posts: 541
cool idea :)

welcome to my forum :)

_________________
Tempus et vita, tempus et mortis


Top 
 Profile  
Reply with quote  
 Post Posted: Sat Jul 14, 2012 4:01 pm 
Offline
Site Admin
User avatar

Joined: Sun Nov 13, 2011 2:57 pm
Posts: 541
also I want to know which lua decompiler you used to decompiler it?
I like to start modify them and compile again

_________________
Tempus et vita, tempus et mortis


Top 
 Profile  
Reply with quote  
 Post Posted: Sat Jul 14, 2012 9:16 pm 
Offline
User avatar

Joined: Tue Mar 27, 2012 4:25 pm
Posts: 29
Hi rupuz

What are decompiled LUA scripts and what are they for?


Top 
 Profile  
Reply with quote  
 Post Posted: Sun Jul 15, 2012 8:05 am 
Offline
Site Admin
User avatar

Joined: Sun Nov 13, 2011 2:57 pm
Posts: 541
it's for making quests, AI, change what units spawn in spawn point, etc.

I think possibilities are endless

_________________
Tempus et vita, tempus et mortis


Top 
 Profile  
Reply with quote  
 Post Posted: Sun Jul 15, 2012 12:13 pm 
Offline
User avatar

Joined: Tue Mar 27, 2012 4:25 pm
Posts: 29
So let me try and get this right.

You decompile LUA just like you uncompressed a 7 zip file and change and modify the files inside (are the files inside like .dll files?) to get the desired effect and then recompile them into LUA and copy and replace them with the ones in the game directory. And then the effects take place when you fire up the game.

Sorry if I sound stupid.


Top 
 Profile  
Reply with quote  
 Post Posted: Sun Jul 15, 2012 1:41 pm 
Offline
Site Admin
User avatar

Joined: Sun Nov 13, 2011 2:57 pm
Posts: 541
yes, that's exactly what it does

_________________
Tempus et vita, tempus et mortis


Top 
 Profile  
Reply with quote  
 Post Posted: Mon Jul 16, 2012 5:33 am 
Offline
User avatar

Joined: Sat Jul 07, 2012 2:08 pm
Posts: 3
rupuzioks wrote:
also I want to know which lua decompiler you used to decompiler it?
I like to start modify them and compile again

I used CFLuaDC for decompile and HW2 Pretty-Printer for make "good looking" code
Yes it's Homeworld 2 tools :)
For compile we can use LuaC4, but it is not necessary for the game working. You may use decompiled scripts, game will be fine. It is good for debugging.


Сarefully, CFLuaDC makes some errors like:
Minutes = 1,5
but should be
Minutes = 1.5
so, need to fix it manually...that I have already did with AI scripts posted above


Top 
 Profile  
Reply with quote  
 Post Posted: Mon Jul 16, 2012 4:29 pm 
Offline
Site Admin
User avatar

Joined: Sun Nov 13, 2011 2:57 pm
Posts: 541
thank you for that, also for informing that there no need to recompile, I'll test it ASAP :)

_________________
Tempus et vita, tempus et mortis


Top 
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2, 3  Next

Board index » Spellforce 1 » Mods


Who is online

Users browsing this forum: No registered users and 1 guest

 
 

 
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 post attachments in this forum

Search for:
Jump to:  
www.000webhost.com