Loading a custom game mode

Discuss everything related to Shootmania.

Moderator: English Moderator

Post Reply
hypperz
Posts: 6
Joined: 19 May 2013, 17:49

Loading a custom game mode

Post by hypperz »

Okay, so I've been at this for almost 3 hours now and can't seem to find a reason for the issue. I'm trying to get my server to run on the 1337 Mode Script found over at Maniapark. However, when I tell SMStormElite.txt in the matchsettings folder to load the script 1337.Script.txt, it completely ignores me and loads the normal elite mode (Elite.Script.txt), and I can't find Elite.Script.txt anywhere (or else I'd just replace that with the 1337 mode script). I've looked at everything I could and have completely failed to find a solution for this.

Would love to know what's going on!

Cookies for the person that can give me an answer as to why this is happening.
User avatar
TMarc
Posts: 15255
Joined: 05 Apr 2011, 19:10
Location: Europe
Contact:

Re: Loading a custom game mode

Post by TMarc »

Are you using the dedicated server, or the built-in server in the menus?
The Elite script is in the packed files of Elite (PacksCache\Elite.Title.Pack.Gbx), and also available on ManiaPlanet Github.

Perhaps you can run such custom modes only with the dedicated server, as it is much more flexible regarding configuration.
hypperz
Posts: 6
Joined: 19 May 2013, 17:49

Re: Loading a custom game mode

Post by hypperz »

It's a server that I've purchased from GameServers.

Thanks for your response as to where it's drawing the Elite script from, but my next question is how exactly is it pulling that information from the Elite.Title.Pack.Gbx file? There's no mention to it at all in the SMStormElite.txt or anywhere else, and as such seems as though that it's ignoring what I'm telling it to do, and loading Elite.Script.txt from that Gbx file.
hypperz
Posts: 6
Joined: 19 May 2013, 17:49

Re: Loading a custom game mode

Post by hypperz »

So after what you said, and looking at it

"Script 'Mode:Elite': 542> Script: ModeBase.Script.txt | Version: 2013-04-18
542> Script: Mode.Script.txt | Version: 2013-04-08
542> Script: Stats.Script.txt | Version: 2013-03-05
542> Script: XmlRpc.Script.txt | Version: 2013-04-16
542> Script: Clublink.Script.txt | Version: 2013-03-26
542> Script: ModeSport.Script.txt | Version: 2013-04-23
542> Script: SM.Script.txt | Version: 2013-02-19
542> Script: Json.Script.txt | Version: 2013-03-08
542> Script: Toss.Script.txt | Version: 2012-10-12
542> Script: Score.Script.txt | Version: 2012-10-31
542> Script: Layers.Script.txt | Version: 2012-08-06
542> Script: WarmUp.Script.txt | Version: 2013-04-18
542> Script: Message.Script.txt | Version: 2013-04-02
542> Script: Interface.Script.txt | Version: 2013-04-22
542> Script: SpawnScreen.Script.txt | Version: 2013-01-24
542> Script: WaitingQueue.Script.txt | Version: 2013-04-18
542> Script: Elite.Script.txt | Version: 2013-04-24
542> Script: Draft.Script.txt | Version: 2012-12-17
542> Script: Settings.Script.txt | Version: 2013-03-08
542> Script: KingOfTheLobby.Script.txt | Version: 2013-04-10
542> Script: WeaponSelection.Script.txt | Version: 2013-02-14"

Does that mean what it's doing there is loading the elite mode, and all subsequent 'scripts' from the Elite.Title.Pack.Gbx file? Does that mean the maps are being loaded from that gbx file as well?

If this is the case, how exactly do I stop it from loading all that information from the gbx file, and instead have it load from my scripts folder? What exactly am I missing here? :S

Why can I tell SMStormElite.txt to load a script if it is instead just going to load from the gbx regardless?

I guess my next question would be is there anyway to 'inject' the 1337 config into the Gbx file replacing Elite.Script.txt in the Gbx?

I did a little bit of googling into what exactly Gbx is, but I couldn't make a whole lot of sense on the matter - The general gist I got is that it isn't something that can be necessarily 'opened' or re-packaged, is this correct?
User avatar
TMarc
Posts: 15255
Joined: 05 Apr 2011, 19:10
Location: Europe
Contact:

Re: Loading a custom game mode

Post by TMarc »

you can't replace the script in the GBX.

Instead you have to tell the server (again the question: did you try the dedicated server? it is available here: http://forum.maniaplanet.com/viewtopic. ... 61&t=19489) which script to use.
The dedicated server has a few launch parameters, and a configuration file.

But I'm not the expert of the scripts here (no one can know everything ;) ).
I recommend you to look for tutorials about how to create and to use custom modes, see a few links here http://forum.maniaplanet.com/viewtopic. ... 0&p=149458 :thumbsup:
User avatar
TGYoshi
Posts: 795
Joined: 15 Mar 2011, 16:59

Re: Loading a custom game mode

Post by TGYoshi »

This has to do with server launching parameters.
You can start the server like this (Not entirely sure about the title name..):
ManiaplanetServer.exe /title=Elite /matchsettings=...

Like this it loads the Elite title and all data is in the Elite pack.

If you use the /title SMStorm you can load custom gamemodes and stuff.

You just have to figure out if "Gameservers" allow you to change these params.
=3
hypperz
Posts: 6
Joined: 19 May 2013, 17:49

Re: Loading a custom game mode

Post by hypperz »

Second Edit: Okay TGYoshi, I see what you're saying now - Gameservers allows me to edit this 'start-up' information in anyway I wish... What I currently have is

./ManiaPlanetServer /game_settings=MatchSettings/SMStormElite.txt /title=SMStormElite@nadeolabs /dedicated_cfg=dedicated_cfg.txt /nodaemon

Which, after what you said, explains why it was loading the Elite Mode from the container file... When I change it to

./ManiaPlanetServer /game_settings=MatchSettings/SMStormElite.txt /title=SMStorm@nadeolabs /dedicated_cfg=dedicated_cfg.txt /nodaemon

Dropping the Elite from the title, it gives me an error in the logs, "ERROR: Title unknown." and then resets, hanging at the same Title unknown message each time.
hypperz
Posts: 6
Joined: 19 May 2013, 17:49

Re: Loading a custom game mode

Post by hypperz »

And after paying closer attention to what you were saying, dropping the @nadeolabs, it now works!

Thank you sooo much TMarc for helping me out.

And thank you SOOOOOOOOO much TGYoshi for solving this issue for me! :D
Post Reply

Return to “Shootmania”

Who is online

Users browsing this forum: No registered users and 2 guests