StopMoving.asm(3): PC out of range

voltopt

Member
Good morning - I'm attempting to take some of the concepts and scripts I've learned up through Tutorial Video 8 into my own simple four screen 2 Way Platformer; after updating scripts and setting up in a similar fashion, at export I am getting the following:


D:\NESmaker\NESmaker_4_5\GameEngineData>asm6 MainASM.nes game.nes demo.txt
pass 1..
Routines\BASE_4_5\Game\AI_Scripts\StopMoving.asm(3): PC out of range.
Routines\BASE_4_5\Game\AI_Scripts\StopMoving.asm(4): PC out of range.
Routines\BASE_4_5\Game\LoadAllSubroutines.asm(76): PC out of range.
Routines\BASE_4_5\Game\LoadAllSubroutines.asm(79): PC out of range.
Routines\BASE_4_5\Game\LoadAllSubroutines.asm(82): PC out of range.
Routines\BASE_4_5\Game\LoadAllSubroutines.asm(85): PC out of range.
Routines\BASE_4_5\Game\LoadAllSubroutines.asm(88): PC out of range.
Routines\BASE_4_5\Game\LoadAllSubroutines.asm(91): PC out of range.
Routines\BASE_4_5\Game\LoadAllSubroutines.asm(94): PC out of range.
Routines\BASE_4_5\Game\LoadAllSubroutines.asm(97): PC out of range.
Routines\BASE_4_5\Game\LoadAllSubroutines.asm(100): PC out of range.
Routines\BASE_4_5\Game\LoadAllSubroutines.asm(103): PC out of range.
Routines\BASE_4_5\Game\LoadAllSubroutines.asm(106): PC out of range.
Routines\BASE_4_5\Game\LoadAllSubroutines.asm(109): PC out of range.
Routines\BASE_4_5\Game\LoadAllSubroutines.asm(112): PC out of range.
Routines\BASE_4_5\Game\LoadAllSubroutines.asm(115): PC out of range.
demo.txt written.

D:\NESmaker\NESmaker_4_5\GameEngineData>pause
Press any key to continue . . .
 

voltopt

Member
I've rebuilt the base file and it loads now. A problem I was running into earlier on my desktop was OneDrive; essentially it would try to update some files that were rapidly changing and eventually placed duplicate files in many of these subfolders. I've rebuilt all of it in a separate, non-cloud drive.
 

dale_coop

Moderator
Staff member
yeah, the compiler doesn't like when the files are locked by a process...
Make sure to work on a no locked folder... and make you backups in another process ( a batch that would copy the NEsmaker folder to your onedrive folder, maybe or something similar)
 

voltopt

Member
Thanks, this is a good suggestion. I've set up a manual batch file sync.

One thing i just noticed, I'm following along with the tutorial, and at the same time testing with some of my own assets. I've noticed when I load the Step 9 subroutine for drawing sprites "doDrawSprites_hScroller", my player object disappears when the game is loaded. If I revert back to the old one, he returns. The only difference I can find from the base tutorial game at this point is the object is 2x4 instead of 2x2.
 

dale_coop

Moderator
Staff member
Yeah, Joe said there is a bug about that. I think there is a patch in the most recent tutorial patchs.
 

voltopt

Member
Yeah, I patched dodrawsprites with the patch from step 10, but I still can't see my player sprite, which is 2x4
 

Jonny

Well-known member
Thanks Dale. I got this same problem too. I was trying to figure out where I'd gone wrong. I didn't get as far as tutorial 11 yet.

I'll just change to the tutorial modules "doDrawSprites" routine for now. The bootcamp is great, really enjoying the videos.
 
Top Bottom