Page 1 of 1

Upload driven time to some database? Singleplayer campaign

Posted: 05 Mar 2018, 22:53
by BigBang1112
I've been looking lately for a way to script the singleplayer race gameplay (like when you finish, your time gets submitted or you earn a medal) and I got really really confused how does that even work.
I like how it's done in title packs made using Maker tool - after finishing, your replay gets submitted somewhere for example. I'm not a fan of Maker tool so I would love to know how is that done using normal scripting.

I'm not here without anything as always - to show that I'm actually trying to find that information. So, those are my ideas:
- Make a gamemode that can handle the score submit. Hard to tell if that is the correct way... It could work in general but there should be a better way.
- CManiaAppPlayground - This class looks promising to me, although once again like with CManiaAppTitle, I don't know how I can access this class. If that's the way to do those things like the finish screen Maker has, I would really love to see how this class can be used. <3

I'm sorry that probably my question is messy, but I'm generally confused how things now work in MP4. We need this for the Reunited, which without this information can't even happen. So, we thank you a lot for answering, it will mean a lot. <3

Re: Upload driven time to some database? Singleplayer campaign

Posted: 06 Mar 2018, 12:35
by adamkooo2
Even with my poor maniascripting skill, I might help you. The command to save current progress is:

Code: Select all

Solo_SetNewRecord(Player.Score, EMedal);
It will save the medal to your campaign, show gained SkillPoints and saves to Nadeo database (if I understand right what you want :mrgreen: ). But you will get the MP3 UI and that's not the best, but you can use it now as a temporary solution
BigBang1112 wrote: 05 Mar 2018, 22:53 CManiaAppPlayground
I can't help you with that :/

BTW.
You can find whole maker-solo script here and see the commands you need: GameData/PackCache/TrackMania_Extras.zip/Scripts/Modes

Good luck with your project :)

Re: Upload driven time to some database? Singleplayer campaign

Posted: 06 Mar 2018, 14:36
by BigBang1112
So, if that means the solo score saving is really done using gamemodes, that is enough information for me then!
Thanks!

Re: Upload driven time to some database? Singleplayer campaign

Posted: 06 Mar 2018, 15:30
by Eole
All the scripts included by the title maker are available on our gitbub repository. You can find the scripts managing all the medal/replay/save/... logic of the campaign inside.

Re: Upload driven time to some database? Singleplayer campaign

Posted: 06 Mar 2018, 19:50
by BigBang1112
Nice! Thanks!