[Annoying] Game soft-locked in map editor "test with mode"

Moderator: English Moderator

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

[Annoying] Game soft-locked in map editor "test with mode"

Post by Dommy » 14 Oct 2019, 23:28

A rather annoying one, prevents mappers from using an upcoming feature in Pursuit map editor: the test mode.

When you click on the Validate button, map type will launch a "test with mode". It works fine until you want to return to the editor. Clicking "Yes" on the prompt does nothing. Reloading the script with Shift + Scroll Lock will only brick the game mode. The only way to return is to open stations menu and enter another title, join a server or enter packs menu.

Game mode is perfectly normal, it bases on ModePursuit, which extends ModeTrackMania. Map type launches it this way:

Code: Select all

#Const C_TestModeName "Modes/TrackMania/Freemode.Script.txt"

[...]

case CPluginEvent::Type::StartValidation : {
	TestMapWithMode(C_TestModeName);
}
Soft-lock example and how to get around it:
(0:22 I hit Shift + Scroll Lock)



Bonus report!

It seems like an event of type CPluginEvent::Type::StartTest should be fired when the user places the "Test Mode" car somewhere on the map. Thie however never happens. If I understand correctly, this is how TrackMania Turbo applies the custom manialink interface while testing the map around.

It would be HIGHLY appreciated by Pursuit mappers if we could launch the "test with mode" when this event is fired, preserving the just chosen spawning position. Reason for that being a very easy way to test if certain spots on the map can be reached with certain cars.

Code: Select all

case CPluginEvent::Type::StartTest : {
	TestMapWithMode(C_TestModeName);
}
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
xbx
Nadeo
Nadeo
Posts: 1290
Joined: 14 Jun 2010, 17:35

Re: [Annoying] Game soft-locked in map editor "test with mode"

Post by xbx » 17 Oct 2019, 16:06

should be fixed. (in the beta update for now)

also: you can now declare EnableMapTypeStartTest = True; in your maptype plugin to get the "StartTest" event
also: you can now ctrl+alt+g (or tilda/²) to edit the scriptsettings during testmap with mode.

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

Re: [Annoying] Game soft-locked in map editor "test with mode"

Post by Dommy » 17 Oct 2019, 18:44

Thanks for the fix and additional details!
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

Post Reply

Return to “MP4.1 REPORTS / BUGS / INFORMATION”

Who is online

Users browsing this forum: No registered users and 1 guest