N
NTiger7
Guest
IDE version 2.3.0.529 and runtime version 2.3.0.401. I am currently using the trial version but will be upgrading to the desktop version soon.
So I was following Shaun Spalding's tutorial on adding transitions between rooms (Part 7) when after I added the part where black bars come from the top and bottom and then you add a trigger to enter the next room, the game won't run. This is what is provided to me in the output:
I think the above is useless, but maybe I'm wrong. The game had no problems before. There are no complier or syntax errors. I have tried removing the code that I added in and it still doesn't load. I have closed and reopened the game and the problem still persists. Here is the last code I added after the last time the game ran successfully:
This is found in the oLevelSwitch object, in the event collision with oPlayer. TRANS_MODE.GOTO is an enum type.:
This is in the oPlayer step event.
For that code, I only added the if and else statement. All the key buttons worked beforehand. I also added hasControl into the oPlayer create event.
This is what the script SlideTransition looks like:
To give some contexts to some variables, this is in the create event of oTransition:
I also made an object called oLevelSwitch so I can change rooms. I made a basic sprite for it (pink with text stating "trigger"), which is what the player will run into to change rooms. This object is invisible in the room.
If there is other code that you think might be causing the problem please let me know. I did add an oTransition object as well, but all the code in that was working previously (at least using RESTART and INTRO). I have been working on this in all my free time and would prefer to not have to restart. I also have tried to fix this problem for 2 hours with no avail.
So I was following Shaun Spalding's tutorial on adding transitions between rooms (Part 7) when after I added the part where black bars come from the top and bottom and then you add a trigger to enter the next room, the game won't run. This is what is provided to me in the output:
GML:
"cmd" /c subst Z: "C:\Users\strip\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE"
elapsed time 00:00:00.1042324s for command "cmd" /c subst Z: "C:\Users\strip\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE" started at 10/10/2020 17:52:25
"cmd" /c subst Y: "C:\Users\strip\AppData\Local\GameMakerStudio2\GMS2TEMP"
elapsed time 00:00:00.0979827s for command "cmd" /c subst Y: "C:\Users\strip\AppData\Local\GameMakerStudio2\GMS2TEMP" started at 10/10/2020 17:52:25
"cmd" /c subst X: "C:\ProgramData\GameMakerStudio2\Cache\runtimes\runtime-2.3.0.401"
elapsed time 00:00:00.1760401s for command "cmd" /c subst X: "C:\ProgramData\GameMakerStudio2\Cache\runtimes\runtime-2.3.0.401" started at 10/10/2020 17:52:25
"C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.3.0.401/bin/Igor.exe" -j=8 -options="C:\Users\strip\AppData\Local\GameMakerStudio2\GMS2TEMP\build.bff" -v -- Windows Run
Loaded Macros from C:\Users\strip\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE\Nuclear_Al_16E6CEFD_F61589CD\macros.json
Options: X:/bin\platform_setting_defaults.json
Options: C:\Users\strip\AppData\Roaming/GameMakerStudio2\stripesrocks_2579517\local_settings.json
Failed to load Options from C:\Users\strip\AppData\Roaming/GameMakerStudio2\stripesrocks_2579517\local_settings.json
Options: C:\Users\strip\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE\Nuclear_Al_16E6CEFD_F61589CD\targetoptions.json
Setting up the Asset compiler
X://bin/GMAssetCompiler.exe /c /mv=1 /zpex /iv=0 /rv=0 /bv=0 /j=8 /gn="Nuclear Alteration" /td="Y:/" /cd="Z:/Nuclear_Al_16E6CEFD_F61589CD" /zpuf="C:\Users\strip\AppData\Roaming/GameMakerStudio2\stripesrocks_2579517" /m=windows /tgt=64 /nodnd /cfg="Default" /o="Y:/Nuclear_Alteration_430DBC34_VM" /sh=True /optionsini="Y:/Nuclear_Alteration_430DBC34_VM\options.ini" /cvm /baseproject="X:/BaseProject\BaseProject.yyp" "C:\Users\strip\Documents\GameMakerStudio2\Nuclear Alteration\Nuclear Alteration.yyp" /preprocess="Z:/Nuclear_Al_16E6CEFD_F61589CD"
Found Project Format 2
Core Resources : Debug Info - Subresource not found 86093bef-58eb-4f99-bf45-794751993a02 on sPlayer
ProjectFileWatcher:StartWatching:C:\Users\strip\Documents\GameMakerStudio2\Nuclear Alteration
Started: 2020-10-10 5:52:27 PM
Finished: 2020-10-10 5:52:28 PM
Diff: 00:00:00.9096063
Loaded Project: Nuclear Alteration
finished.
Release build
Options: Z:/Nuclear_Al_16E6CEFD_F61589CD\ExtensionOptions.json
OptionsIni
Options: Z:/Nuclear_Al_16E6CEFD_F61589CD\PlatformOptions.json
[Compile] Run asset compiler
X://bin/GMAssetCompiler.exe /c /mv=1 /zpex /iv=0 /rv=0 /bv=0 /j=8 /gn="Nuclear Alteration" /td="Y:/" /cd="Z:/Nuclear_Al_16E6CEFD_F61589CD" /zpuf="C:\Users\strip\AppData\Roaming/GameMakerStudio2\stripesrocks_2579517" /m=windows /tgt=64 /nodnd /cfg="Default" /o="Y:/Nuclear_Alteration_430DBC34_VM" /sh=True /optionsini="Y:/Nuclear_Alteration_430DBC34_VM\options.ini" /cvm /baseproject="X:/BaseProject\BaseProject.yyp" "C:\Users\strip\Documents\GameMakerStudio2\Nuclear Alteration\Nuclear Alteration.yyp" /bt=run /rt=vm
Compile Constants...finished.
Remove DnD...finished.
Compile Scripts...finished.
Compile Rooms...finished.
Compile Objects...finished.
Compile Timelines...finished.
Compile Triggers...finished.
Compile Extensions...finished.
Global scripts...finished.
finished.
collapsing enums.
Final Compile...finished.
Saving IFF file... Y:/Nuclear_Alteration_430DBC34_VM\Nuclear Alteration.win
Writing Chunk... GEN8
option_game_speed=60
Writing Chunk... OPTN
Writing Chunk... LANG
Writing Chunk... EXTN
Writing Chunk... SOND
Writing Chunk... AGRP
Writing Chunk... SPRT
Writing Chunk... BGND
Writing Chunk... PATH
Writing Chunk... SCPT
Writing Chunk... GLOB
Writing Chunk... SHDR
Writing Chunk... FONT
Writing Chunk... TMLN
Writing Chunk... OBJT
Writing Chunk... ACRV
Writing Chunk... SEQN
Writing Chunk... TAGS
Writing Chunk... ROOM
Writing Chunk... DAFL
Writing Chunk... EMBI
Writing Chunk... TPAGE
Texture Group - Default
Writing Chunk... TGIN
Writing Chunk... CODE
Writing Chunk... VARI
Writing Chunk... FUNC
Writing Chunk... STRG
Writing Chunk... TXTR
0 Compressing texture... writing texture texture_0.png...
Writing Chunk... AUDO
Writing Chunk... SCPT
Writing Chunk... DBGI
Writing Chunk... INST
Writing Chunk... LOCL
Writing Chunk... DFNC
Writing Chunk... STRG
Stats : GMA : Elapsed=1413.7848
Stats : GMA : sp=25,au=0,bk=0,pt=0,sc=1,sh=2,fo=0,tl=0,ob=20,ro=3,da=0,ex=0,ma=255,fm=0x4000200C69E80020
DoSteam
Igor complete.
[Run] Run game
Options: Z:/Nuclear_Al_16E6CEFD_F61589CD\MainOptions.json
X://windows/Runner.exe -game "Y:/Nuclear_Alteration_430DBC34_VM\Nuclear Alteration.win"
Attempting to set gamepadcount to 12
DirectX11: Using hardware device
Collision Event time(microsecs)=5
Total memory used = 7878235(0x0078365b) bytes
**********************************.
Entering main loop.
**********************************.
X://windows/Runner.exe exited with non-zero status (-1)
elapsed time 00:00:20.6392119s for command "C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.3.0.401/bin/Igor.exe" -j=8 -options="C:\Users\strip\AppData\Local\GameMakerStudio2\GMS2TEMP\build.bff" -v -- Windows Run started at 10/10/2020 17:52:26
"cmd" /c subst Z: /d
elapsed time 00:00:00.1047205s for command "cmd" /c subst Z: /d started at 10/10/2020 17:52:46
"cmd" /c subst Y: /d
elapsed time 00:00:00.1067173s for command "cmd" /c subst Y: /d started at 10/10/2020 17:52:46
"cmd" /c subst X: /d
elapsed time 00:00:00.1166766s for command "cmd" /c subst X: /d started at 10/10/2020 17:52:46
---------- STOPPING ----------
FAILED: Run Program Complete
For the details of why this build failed, please review the whole log above and also see your Compile Errors window.
This is found in the oLevelSwitch object, in the event collision with oPlayer. TRANS_MODE.GOTO is an enum type.:
GML:
/// @description Move to next area
with (oPlayer)
{
if (hasControl)
{
hasControl = false;
SlideTransition(TRANS_MODE.GOTO, other.target);
}
}
GML:
if (hasControl)
{
key_left = keyboard_check(ord("A")) || keyboard_check(vk_left);
key_right = keyboard_check(ord("D")) || keyboard_check(vk_right);
key_jump = keyboard_check_pressed(vk_space);
key_run = keyboard_check(vk_lshift);
}
else
{
key_left = 0;
key_right = 0;
key_jump = 0;
key_run = 0;
}
This is what the script SlideTransition looks like:
GML:
/// @desc SlideTransition(mode, targetroom)
/// @arg Mode sets transition mode between next, restart and goto
/// @arg Target sets target room when using the goto mode
// Script assets have changed for v2.3.0 see
// https://help.yoyogames.com/hc/en-us/articles/360005277377 for more information
with(oTransition)
{
mode = argument[0];
if (argument_count > 1) target = argument[1];
}
GML:
/// @description Size variables and mode setup
w = display_get_gui_width();
h = display_get_gui_height();
h_half = h / 2;
enum TRANS_MODE
{
OFF,
NEXT,
GOTO,
RESTART,
INTRO
}
mode = TRANS_MODE.INTRO;
percent = 1;
target = room;
If there is other code that you think might be causing the problem please let me know. I did add an oTransition object as well, but all the code in that was working previously (at least using RESTART and INTRO). I have been working on this in all my free time and would prefer to not have to restart. I also have tried to fix this problem for 2 hours with no avail.