Product Chat / Glitch in Multi Level Access

Author
Message
ozziedave
18
Years of Service
User Offline
Joined: 20th Apr 2006
Location: Australia
Posted: 16th Dec 2015 00:08 Edited at: 16th Dec 2015 00:09
Problem with making a Standalone Game with three Levels
GG 1.111

Each Level is in the mapbank I am using this lua script.
---------------------------------------------------------
local PlayerDist = 0
local AnimRun = 0

function cryo_unit_b_init(e)
CollisionOn(e);
level="ZS_Level_02"
end

function cryo_unit_b_main(e)

PlayerDist = GetPlayerDistance(e)
if PlayerDist < 280 then

SetAnimation(0);
SetAnimationSpeed(e,440);
SetAnimationFrames(0,150)
PlayAnimation(e);
PlaySound(e,0);
PromptDuration("PickUp BOOK and Pick Up the LEVEL KEY in the Market place, then back here",3000)
if book_pick_up == 1 and key_pick_up == 1 then
JumpToLevel(level)

end
end
end
-------------------------------------------------------------------------------------------------
The problem is that the Standalone folder does not include ZS_Level_02.fpm
or the third level fpm, and does not copy the entity’s for the two Levels into the
entity folder.

To beat this problem I have been placing a WinZone into level 1 and 2, then the
correct files have been copied to the Standalone Game Folder, I then go into that
folder and delete the Winzone lua code so it dosen’t fire off at all.

I would have thought that JUMPTOLEVEL would have caused the required files
to be copied correctly, maybe I don’t understand how this function works.

The Game now works fine.
PM
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 16th Dec 2015 02:47
I found the same issue. GG can't as yet scan your scripts for level changes, you have to use the winzone for each level. Not an issue really to be fair. No problem having a winzone that has your own script attached. If you want your custom scripts to work without one, you will need to copy over your files manually at the moment. GG can't check all scripts for a level change command and automatically copy the files, if you want that, you have to copy them yourself. I did a video before GG was GG illustrating this issue and showing how to sort it.

Best bet, use a winzone and change the script attached to it. Then GG will copy over level data automatically and you still have some control over when you can change level.


SPECS: Q6600 CPU. Nvidia 660GTX. 8 Gig Memory. Win 7.

Login to post a reply

Server time is: 2024-05-05 02:25:14
Your offset time is: 2024-05-05 02:25:14