Page 1 of 1

How to create a user_script_X.lvl file?

Posted: Fri Aug 07, 2020 7:32 pm
by gtgamtemp
.

Re: How to create a user_script_X.lvl file?

Posted: Sat Aug 08, 2020 4:30 pm
by INMR
There's a ton of scripting tutorials listed in the FAQ thread. Are those of help or do they fall short?

I have no knowledge of scripting, but might be able to dig up something if you can provide me with more information.

Re: How to create a user_script_X.lvl file?

Posted: Sun Aug 09, 2020 7:26 am
by gtgamtemp
.

Re: How to create a user_script_X.lvl file?

Posted: Sun Aug 09, 2020 9:43 am
by Sporadia
The best tutorial type thing on this is probably Zerted's documentation for the 1.3 patch. They're buried in the patch folder (in the addon folder). Look at how to 'munge a custom lvl file' then how to 'make a custom user script' in that order.

Edit: Writing lua for the actual skin changer to work will take some more figuring out though. I don't know the easiest way to do it. I can think of a very convoluted method: Hack/redefine the AddUnitClass() function and the ReadDataFile() function so you can mess with them in the user script. Then add all the units with the new skins in a side mod (swapping the unit names around with the user script). But there must be another way of doing it because I've played someone else's skin changer mod before and they managed to use the fake console to swap skins after the game had already started (which I don't know how to do).

Re: How to create a user_script_X.lvl file?

Posted: Sun Aug 09, 2020 3:36 pm
by gtgamtemp
.

Re: How to create a user_script_X.lvl file?

Posted: Mon Aug 10, 2020 3:02 am
by AnthonyBF2
The 1.3 patch comes with the documentation to do this. Look in the AAA-V1.3 addon folders.