Page 1 of 1
It's possible to add class with 'hex-editing' some files
Posted: Mon May 23, 2016 12:50 pm
by CdtFox
Hi,
I want to know if it's possible to add a custom class with hex-editing the mission.lvl file only. If yes, how I can do this?
As usual thanks for the help guys

Re: It's possible to add class with 'hex-editing' some files
Posted: Mon May 23, 2016 2:22 pm
by Marth8880
I'm pretty sure it's possible, yeah, but I'm even more sure that it'd require offsetting bytes and whatnot, which I don't know how to do lol, so I wouldn't be of much help, rip
Re: It's possible to add class with 'hex-editing' some files
Posted: Mon May 23, 2016 2:40 pm
by commanderawesome
But, why? You can accomplish the same thing using the mod tools and notepad.
Re: It's possible to add class with 'hex-editing' some files
Posted: Mon May 23, 2016 3:48 pm
by Kingpin
commanderawesome wrote:But, why? You can accomplish the same thing using the mod tools and notepad.
This is correct. You can load in nearly anything from any mod within LUA, if you know how to

Re: It's possible to add class with 'hex-editing' some files
Posted: Wed May 25, 2016 6:17 am
by CdtFox
Kingpin wrote:commanderawesome wrote:But, why? You can accomplish the same thing using the mod tools and notepad.
This is correct. You can load in nearly anything from any mod within LUA, if you know how to

That's a good point I know that's possible, cool! But now I don't know how... I'll do some try this afternoon. Thanks all

Re: It's possible to add class with 'hex-editing' some files
Posted: Wed May 25, 2016 10:16 am
by Kingpin
Say you wanted to add your own custom side to the stock Kamino map. Just copy over the script from (assets/scripts/kam/kam1c_con) to your mod scripts, load it in as a mission, and tweak it to add your custom unit. That is probably the easiest way.
http://www.gametoast.com/viewtopic.php? ... 96#p287596
Re: It's possible to add class with 'hex-editing' some files
Posted: Thu May 26, 2016 10:16 am
by CdtFox
Yep I know that, i already made some custom sides with a new era, but now i want to try with the mission file...Thanks anyways Kingpin

Re: It's possible to add class with 'hex-editing' some files
Posted: Thu May 26, 2016 1:43 pm
by commanderawesome
You can override stock missions with addon missions. Just do as Kingpin said but don't change the name of the script.
Re: It's possible to add class with 'hex-editing' some files
Posted: Fri May 27, 2016 1:35 pm
by CdtFox
commanderawesome wrote:You can override stock missions with addon missions. Just do as Kingpin said but don't change the name of the script.
..lol...That's why I want to know how to add a class via hex-editing the mission .lvl file
Re: It's possible to add class with 'hex-editing' some files
Posted: Fri May 27, 2016 2:30 pm
by commanderawesome
CdtFox wrote:commanderawesome wrote:You can override stock missions with addon missions. Just do as Kingpin said but don't change the name of the script.
..lol...That's why I want to know how to add a class via hex-editing the mission .lvl file
What i'm saying is that's unnecessary. You can replace those same missions without even touching mission.lvl.
Just follow the new era/mode tutorial without changing the scripts' names and only adding this to your addme.lua:
Code: Select all
AddDownloadableContent("stockworld","name_of_stock_script",4)
The stock missions will be changed just like if you edited mission.lvl.
Re: It's possible to add class with 'hex-editing' some files
Posted: Sat May 28, 2016 11:09 am
by CdtFox
Thanks Commander!
