Advertiser Content
Male
Medan, Indonesia
Seen 1 Week Ago
Posted 1 Week Ago
83 posts
325 Days
I try to make one script to continue using "warp" function in XSE
Just like when Prof.OAK stops you before you go onto the grass in PALLET TOWN.
Then continue to OAK LAB, I am trying to make the exact script like that.

I used A-Map and insert the script with the "On entering map/not on menu close"
But everytime i enter the room, it crashes to blackscreen.
Any tips?
Male
Medan, Indonesia
Seen 1 Week Ago
Posted 1 Week Ago
83 posts
325 Days
You need to make a type 02 level script, check this tutorial on how to make those work: https://www.pokecommunity.com/showthread.php?t=191500.

The type 03 you were using is mostly used to move sprites around or set certain flags or variables.
The tutorial is full of broken images and video.
I managed to make the script continue after the warp though.
But the game freezes when it finishes the script.

I think it has something to do with the decompile and level script written in the tutorial.
And since the images and video are missing, i kinda stuck in it.

Variables needed for the script to instant-execute : 0x4011 with value 0x1

Script after DECOMPILE
'---------------
#org 0xEF1768
#raw 0x2
#raw pointer 0x8EF176E
#raw 0x0

'---------------
#org 0xEF176E
#raw word 0x4011
#raw word 0x1
#raw pointer 0x8EF1776
#raw word 0x1669

'---------------
#org 0xEF1776
lockall
setvar 0x4011 0x2
applymovement MOVE_PLAYER 0x8EF178F
msgbox 0x8EF1792 MSG_KEEPOPEN '"[blue_fr][player].\pYour unreasona..."
closeonkeypress
releaseall
end

Well, i don't see any 0xFFFF, What do i do?
Online now
Posted 1 Day Ago
282 posts
11.3 Years
The tutorial is full of broken images and video.
I managed to make the script continue after the warp though.
But the game freezes when it finishes the script.

I think it has something to do with the decompile and level script written in the tutorial.
And since the images and video are missing, i kinda stuck in it.

Variables needed for the script to instant-execute : 0x4011 with value 0x1

Script after DECOMPILE
'---------------
#org 0xEF1768
#raw 0x2
#raw pointer 0x8EF176E
#raw 0x0

'---------------
#org 0xEF176E
#raw word 0x4011
#raw word 0x1
#raw pointer 0x8EF1776
#raw word 0x1669

'---------------
#org 0xEF1776
lockall
setvar 0x4011 0x2
applymovement MOVE_PLAYER 0x8EF178F
msgbox 0x8EF1792 MSG_KEEPOPEN '"[blue_fr][player].\pYour unreasona..."
closeonkeypress
releaseall
end

Well, i don't see any 0xFFFF, What do i do?
Change the #raw word 0x1669 to 0x0

EDIT: Only the video is not available anymore, but that was kind of unnecessary anyway.
Male
Medan, Indonesia
Seen 1 Week Ago
Posted 1 Week Ago
83 posts
325 Days
Change the #raw word 0x1669 to 0x0
I did, but the game still freeze after the script is finished.
Not sure if it is the cause. I did try to decompile it again but the #raw word 0x1669 returned back to 0x1669 no matter how many times i compile it.
Or is it because my script is wrong?
I did put the releaseall command and end command too.

ALSO -
I tried to remove the setvar 0x4011 0x2 command in the script.
And the script repeat it self infinitely.

So do i need a clean variable (Variable with value of 0) to work?
Male
Medan, Indonesia
Seen 1 Week Ago
Posted 1 Week Ago
83 posts
325 Days
What is your script? Do you have more level scripts on the same map?
And are you sure you are compiling it correctly then? Since that is pretty strange.
There is only one level script in the map.
Script type : 02, flag used is 4011 with value of 1

The script is just the same as above, but for detail :

BEFORE WARP EVENT
Player needs to walk into a script (GREEN S in ADVANCE MAP)
The script uses 4011 as well with a value of 1 to run.
After the event is finished, player will be warped.

AFTER WARP
#org 0xEF1776
lockall
setvar 0x4011 0x2
applymovement MOVE_PLAYER 0x8EF178F
msgbox 0x8EF1792 MSG_KEEPOPEN '"[blue_fr][player].\pYour unreasona..."
closeonkeypress
releaseall
end


Problem is : The game will freeze after all this scripts are finished, the music still runs. But the player cannot move or pause or press anything.
Male
Medan, Indonesia
Seen 1 Week Ago
Posted 1 Week Ago
83 posts
325 Days
OKAY, i don't know what the hell happened.
But i tried to manually edit the #raw word 0x1669 to 0x0 value using Hex Editor.
Still crashes though.

Then i rewrite everything using the same script and repoint it somewhere else.
And voila, everything works perfectly fine.

I don't know what makes it work, and at this point i am afraid to ask.
Online now
Posted 1 Day Ago
282 posts
11.3 Years
OKAY, i don't what the hell happened.
But i tried to manually edit the #raw word 0x1669 to 0x0 value using Hex Editor.
Still crashes though.

Then i rewrite everything using the same script and repoint it somewhere else.
And voila, everything works perfectly fine.

I don't know what makes it work, and at this point i am afraid to ask.
But it works now, right? AdvanceMap is not really great to work with concerning level scripts. Sometimes, restarting the program may also work wonders;)
Advertiser Content