[Solved] Migrating MP3 Scripts to MP4

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
User avatar
Darkminus
Posts: 228
Joined: 05 Jun 2012, 20:54
Location: Dans mon monde.
Contact:

[Solved] Migrating MP3 Scripts to MP4

Post by Darkminus » 21 Sep 2018, 09:49

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 :)
Last edited by Darkminus on 22 Sep 2018, 03:31, edited 1 time in total.
Professor Law
ShootMania-addict since June 2012.
Arena Duel, Duel Elite V2, MidAir V2 and SDPro Developer

System Specs:
OS: Windows 10 Professionnal x64
CPU: Intel i5-4670
GPU: MSI TwinFrozr GTX 760 OC
Motherboard: Asus Z87-C
RAM : 10Gb

User avatar
Dommy
Translator
Translator
Posts: 1872
Joined: 25 Aug 2011, 21:45
Location: Poland
Contact:

Re: Migrating MP3 Scripts to MP4

Post by Dommy » 21 Sep 2018, 11:32

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.
Ryzen 7 2700X, GTX 1070 Ti, 16 GB RAM, Windows 10 Insider Build
FORUM MODERATOR • CREATOR OF SHOOTMANIA GALAXY & TRACKMANIA² PURSUIT

Contact me via GALAXY & PURSUIT DISCORD

User avatar
Darkminus
Posts: 228
Joined: 05 Jun 2012, 20:54
Location: Dans mon monde.
Contact:

Re: Migrating MP3 Scripts to MP4

Post by Darkminus » 22 Sep 2018, 03:31

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:
Professor Law
ShootMania-addict since June 2012.
Arena Duel, Duel Elite V2, MidAir V2 and SDPro Developer

System Specs:
OS: Windows 10 Professionnal x64
CPU: Intel i5-4670
GPU: MSI TwinFrozr GTX 760 OC
Motherboard: Asus Z87-C
RAM : 10Gb

Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 2 guests