Page 1 of 1

[Solved] Migrating MP3 Scripts to MP4

Posted: 21 Sep 2018, 09:49
by Darkminus
Hello there, that was a long time !

Posting here because I need some help from you. I'm trying to migrate my old titlepack scripts from MP3 to MP4 but I can't get them working at all.

I tried changing libraries from old inclusions to the matching ones but I still trigger compilation errors in a place or another.
(Mostly missing methods [so I guess I'm using the wrong libraries], or an error concerning AutoTeamBalance being a system function now.

For Arena Duel for example, I was extending "Modes/ShootMania/ModeMatchmaking.Script.txt", it seems now I have to use "Modes/ShootMania/Base/ModeMatchmaking.Script.txt" but it still doesn't help as I end triggering the compilation error about AutoTeamBalance (that comes from Mode.Script.txt)

Is there any recommended way to make it work properly at least until I re-do the things with actual libraries?

Thank you for your answers :)

Re: Migrating MP3 Scripts to MP4

Posted: 21 Sep 2018, 11:32
by Dommy
You should be using ModeShootmania.Script.txt for base. It already extends everything you may need.

Code: Select all

#Extends "Modes/ShootMania/Base/ModeShootmania.Script.txt"
There are some changes in labels, described with more detail here:
https://github.com/maniaplanet/game-mod ... ipt.txt#L9

Basically, you should prefix your labels for match context like ***Match_XXXXX*** and ***Lobby_XXXXX*** for matchmaking lobby.
Note: "Start" labels have closed scope, meaning that all variable declarations inside these won't be accessible in other labels. On the other hand, "Init" labels can contain declarations visible in other labels.

Re: Migrating MP3 Scripts to MP4

Posted: 22 Sep 2018, 03:31
by Darkminus
Hello there,

I managed to run it.
I was trying to make it compile from a TitleMaker and I thought it would not run at all with the autobalance error... But it seems it's just a warning as the script runs anyway and that's everything I needed ^^
The goal was to make that version work "as-is" so people can play it. Now, I can take my time to re-do the whole gamemode from scratch.

Thank you for your help ! :thx: