The blocking message functions have been dramatically scaled back in GMS 2 for cross-platform compliance reasons. You have to completely move off the likes of
message_*() and
show_message_ext() and emulate them using non-blocking objects instead (e.g. 3 button objects that each do something different when clicked). This won't be a copy-and-paste conversion, and you should expect having to re-architect the affected parts of your project.
action_set_timeline() refers to the drag-and-drop action for starting a timeline. This is the new way of starting a timeline:
Code:
timeline_index = tml_example;
timeline_position = 0;
timeline_running = true;
Thanks! I am aware that these projects will likely need a lot of work to get working again, and I am willing to put that time in, if I knew what to do (or where to find out what do to).
Speaking of, I've started converting my next project and I'm getting a lot of errors in GMS 1.4, but I didn't get any warnings about obsolete functions, so I believe that this must be a change in GML?
"
In Object obj_mushroom_book_I, in Event RightButtonReleased action number 1 at line 20 : got ';' expected ',' or ')'
In Object obj_mushroom_book_I, in Event RightButtonReleased action number 1 at line 20 : got ';' expected ')'
In Object obj_electronics_book_I, in Event RightButtonReleased action number 1 at line 20 : got ';' expected ',' or ')'
In Object obj_electronics_book_I, in Event RightButtonReleased action number 1 at line 20 : got ';' expected ')'
In Object obj_reeroomer, in Event StepNormalEvent action number 1 at line 1 : Assignment operator expected
In Object obj_mushroom_parts, in Event LeftButtonReleased action number 1 at line 18 : got 'Mushroom' expected ',' or ')'
In Object obj_mushroom_parts, in Event LeftButtonReleased action number 1 at line 18 : got 'Mushroom' expected ')'
In Object obj_electronics, in Event LeftButtonReleased action number 1 at line 18 : got 'Electronics' expected ',' or ')'
In Object obj_electronics, in Event LeftButtonReleased action number 1 at line 18 : got 'Electronics' expected ')'
In Object obj_solar_panel, in Event CreateEvent action number 2 at line 1 : cannot use function/script name for a variable, using "power"
In Object obj_solar_panel, in Event CreateEvent action number 2 at line 1 : malformed assignment
In Object obj_solar_panel, in Event ObjAlarm1 action number 2 at line 5 : cannot use function/script name for a variable, using "power"
In Object obj_solar_panel, in Event ObjAlarm1 action number 2 at line 5 : got '100' expected ')'
In Object obj_solar_panel, in Event ObjAlarm1 action number 2 at line 5 : wrong number of arguments for function action_if_variable
In Object obj_solar_panel, in Event ObjAlarm0 action number 2 at line 10 : cannot use function/script name for a variable, using "power"
In Object obj_solar_panel, in Event ObjAlarm0 action number 2 at line 10 : got '4' expected ')'
In Object obj_solar_panel, in Event ObjAlarm0 action number 2 at line 10 : wrong number of arguments for function action_if_variable
In Object obj_solar_panel, in Event StepNormalEvent action number 1 at line 1 : cannot use function/script name for a variable, using "power"
In Object obj_solar_panel, in Event StepNormalEvent action number 1 at line 1 : unexpected symbol ">" in expression
In Object obj_solar_panel, in Event StepNormalEvent action number 1 at line 1 : malformed assignment
In Object obj_solar_panel, in Event DrawEvent action number 1 at line 2 : cannot use function/script name for a variable, using "power"
In Object obj_solar_panel, in Event DrawEvent action number 1 at line 2 : got 'c_gray' expected ')'
In Object obj_solar_panel, in Event DrawEvent action number 1 at line 2 : wrong number of arguments for function draw_healthbar
In Object obj_electric_light_off, in Event CreateEvent action number 22 at line 3 : cannot use function/script name for a variable, using "power"
In Object obj_electric_light_off, in Event CreateEvent action number 22 at line 3 : malformed assignment
In Object obj_electric_light_off, in Event StepNormalEvent action number 1 at line 1 : cannot use function/script name for a variable, using "power"
In Object obj_electric_light_off, in Event StepNormalEvent action number 1 at line 1 : malformed assignment
In Object obj_reeroomer, in Event StepNormalEvent action number 1 at line 1 : malformed assignment statement
In Object obj_mushroom_parts, in Event LeftButtonReleased action number 1 at line 18 : malformed assignment statement
In Object obj_electronics, in Event LeftButtonReleased action number 1 at line 18 : malformed assignment statement
In Object obj_solar_panel, in Event ObjAlarm1 action number 2 at line 5 : malformed assignment statement
In Object obj_solar_panel, in Event ObjAlarm0 action number 2 at line 10 : malformed assignment statement
In Object obj_solar_panel, in Event StepNormalEvent action number 1 at line 1 : malformed if statement
Compile Failed - Please check the Compile window for any additional information
"
I believe that most these errors are related to global variables (e.g. "global.happiness" in the case of the first error).
Here's my 'Global variables script (scr_global_var_set)', I hope it helps:
"
//global things
global.globalgoing = 0;
global.time = 0;
global.cheats = false;
global.happiness = 0;
global.fullness = 100;
global.maxFullness = 100;
global.Pspeed = 4.5;
global.ch = false;
//Inventory and crafting
global.waterC = 0;
global.crystalBC = 0;
global.rocksC = 0;
global.grassC = 0;
global.flower1C = 0;
global.dryGrass = 0;
global.treeC = 0;
global.active = 0;
global.clothing = 0;
global.MBBC = 0;
global.bariocoliptiostoulsC = 0;
global.boxesC = 0;
// P inventory
global.inventoryItems = 0;
global.stones = 0;
global.grass = 0;
global.largeGrass = 0;
global.logs = 0;
global.campFires = 0;
global.branches = 0;
global.mareenadumCrystals = 0;
global.sunflowerSeeds = 0;
global.magentarberrys = 0;
global.mareenadumPicks = 0;
global.bariocoliptiostouls = 0;
global.mushroomBooks = 0;
global.electronicsBooks = 0;
global.stoneTiles = 0;
global.ash = 0;
global.solarCells = 0;
global.solarPanels = 0;
global.pepper = 0;
global.powerExits = 0;
global.stannum = 0;
global.electricLights = 0;
global.accumulators = 0;
global.wrenches = 0;
global.powerDeflectors = 0;
//skills
global.skillPoints = 0;
global.mushroomIDs = 0;
global.MPP = 0;
global.electronics = 0;
"
I know that asking for so much help might be a lot to ask, but I really need help with this (or at least where I can get more information on where I can learn (or re-learn in some cases) how to fix these things myself).
Many thanks!