Hello, I know it's probably a dumb question.
When I start a LAN with an empty gamemode, the map will load, but right after it it will return to menu again.
What should I add to my code to keep staying in the game? Looked into other Shootmania gamemodes, and there isn't anything special.
Hope you got me, any answers are appreciated!
How should I set up Shootmania gamemode?
Moderator: English Moderator
- BigBang1112
- Posts: 388
- Joined: 20 Jul 2015, 12:44
- Manialink: bigbang1112
- Location: Czech Republic
- Contact:
How should I set up Shootmania gamemode?
Creator and competent racer. YouTube Discord
- ENVIMIX (out in open-source)
- Challenge (OUT NOW)
- Leaderboards (OUT NOW)
- Compute Shadows
- ENVIMIX (out in open-source)
- Challenge (OUT NOW)
- Leaderboards (OUT NOW)
- Compute Shadows
- Dommy
- Translator
- Posts: 1866
- Joined: 25 Aug 2011, 21:45
- Manialink: exchange
- Location: Poland
- Contact:
Re: How should I set up Shootmania gamemode?
I assume you don't start any mode using ModeBase (I also don't know why someone wouldn't do that). But if you want to keep the mode running, add mandatory that loads the map and to keep it runnning.
Problem may be also caused by incorrect map you try to select (may feature items, but game cannot load them).
Code: Select all
Void CMode::RequestLoadMap()
Code: Select all
while (!ServerShutdownRequested) {
yield;
}
Problem may be also caused by incorrect map you try to select (may feature items, but game cannot load them).
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
FORUM MODERATOR • CREATOR OF SHOOTMANIA GALAXY & TRACKMANIA² PURSUIT
Contact me via GALAXY & PURSUIT DISCORD
- BigBang1112
- Posts: 388
- Joined: 20 Jul 2015, 12:44
- Manialink: bigbang1112
- Location: Czech Republic
- Contact:
Re: How should I set up Shootmania gamemode?
When you make a singleplayer gamemode, there's no need having that EndRound, StartServer etc. I also tested that and it did the same end.
The map loaded normally without RequestLoadMap(), but i tried it with too, no different result at all.
I'll try the while thing and if it won't work, I'll post a code. Thanks!
The map loaded normally without RequestLoadMap(), but i tried it with too, no different result at all.
I'll try the while thing and if it won't work, I'll post a code. Thanks!
Creator and competent racer. YouTube Discord
- ENVIMIX (out in open-source)
- Challenge (OUT NOW)
- Leaderboards (OUT NOW)
- Compute Shadows
- ENVIMIX (out in open-source)
- Challenge (OUT NOW)
- Leaderboards (OUT NOW)
- Compute Shadows
- BigBang1112
- Posts: 388
- Joined: 20 Jul 2015, 12:44
- Manialink: bigbang1112
- Location: Czech Republic
- Contact:
Re: How should I set up Shootmania gamemode?
Oh I get it 
Even though I forgot to put brackets after main, it didn't give me any error and it just crashed whatsoever. Now next day I ran Maniaplanet and whoop, right 2 errors. xd

Even though I forgot to put brackets after main, it didn't give me any error and it just crashed whatsoever. Now next day I ran Maniaplanet and whoop, right 2 errors. xd
Creator and competent racer. YouTube Discord
- ENVIMIX (out in open-source)
- Challenge (OUT NOW)
- Leaderboards (OUT NOW)
- Compute Shadows
- ENVIMIX (out in open-source)
- Challenge (OUT NOW)
- Leaderboards (OUT NOW)
- Compute Shadows
Who is online
Users browsing this forum: No registered users and 1 guest