Reviving Royal Roulette
Posted: 23 Feb 2019, 20:38
Howdy,
This week i decided to giva a shot to port this mode to mp4.
Soon to learn that a lot has changed and parts of code depricated.
Coding was/is not easy to me and back then i wrote this mode upon the
nadeo script and looking into the standards from https://github.com/maniaplanet/game-modes
However, it seems that these scripts are not updated after some changes where
made so now im kinda stuck.
For example the RoyalPro script from which it looks like i could learn what to change/adapt
to make it work again.
Ik found that syntaxes changed it i should be
(cgbd siad : On the topic of default values, please note that structs do NOT support implicit type to value conversion and that feature is now deprecated. Please use explicit values instead in your future script)
This is where it get complicated for me. I do not know how to define these 3.
Cause if i use
It will trow an out of bounds acces further in the script
Any help / guidance is appreciated!
(or a working compiled script from which i can learn again)
Greetz,
WW
edit: Oh,
And when looking at RoyalFun script, wich seems to have newer code regarding this it stops at
This week i decided to giva a shot to port this mode to mp4.
Soon to learn that a lot has changed and parts of code depricated.
Coding was/is not easy to me and back then i wrote this mode upon the
nadeo script and looking into the standards from https://github.com/maniaplanet/game-modes
However, it seems that these scripts are not updated after some changes where
made so now im kinda stuck.
For example the RoyalPro script from which it looks like i could learn what to change/adapt
to make it work again.
Code: Select all
declare Format = Integer[];
Code: Select all
declare Integer[] Format;
Code: Select all
declare PlayerSpawnsPriorities = [1=>CSmMapLandmark[], 2=>CSmMapLandmark[], 3=>CSmMapLandmark[]];
Cause if i use
Code: Select all
declare Integer[] PlayerSpawnsPriorities;
Code: Select all
foreach (MapLandmark in MapLandmarks_PlayerSpawn) {
if (MapLandmark.Order <= 1) PlayerSpawnsPriorities[1].add(MapLandmark);
else if (MapLandmark.Order == 2) PlayerSpawnsPriorities[2].add(MapLandmark);
else if (MapLandmark.Order >= 3) PlayerSpawnsPriorities[3].add(MapLandmark);
}
(or a working compiled script from which i can learn again)

Greetz,
WW
edit: Oh,
And when looking at RoyalFun script, wich seems to have newer code regarding this it stops at
Which i found a topic on, but not a confirmed solutionERR [118, 25] The procedure Hud_Load failed to complete :
Could not load Module: 'Nadeo/ShootMania/Royal/Hud.Module.Gbx'
RoyalFun::Main() [118, 25]