I took it right from the tutorial and changed the coordinates and orientation to fit my map. It works fine but the texture is missing for some reason.door1lvr=Levers.PlaceLever("Door1Lever", Levers.LeverType3,(-5900,-1000,2500),(0.5,0.5,-0.5,0.5),0.
I've tried it, but it doesn't work. I even changed the external light coordinates to match these numbers.Bladex.SetSun(1,-10,12,16)
I know that works.
All the sun flare code in the main game is executed in a sol.py file. I don't know why as you never get a
sunflare in a saved game. If you put the code in DefFuncs you do.
Yeah, I've got this code right after import lines. The folder name is "FirstMap" and the line looks like "GameText.MapList['FIRSTMAP'] = ['FirstMap']" without quotes. F1 button works though.Have you got this code:
GameText.MapList ['MYMAPNAME'] = 'mymapname'
...in you DefFuncs file?
It needs to be the the exact name on you map folder at the end and a CAPITALISED version
between the s
This enables the savegame and the F1 key.
Ugh, I've just checked one ladle I had placed on the map and it seems like it doesn't have the texture either. Something like that: https://puu.sh/Akh6u/565854333c.png. It changes depending on the angle.Have you any other objects in the map and if so is the texture ok an them.
Thank you, that fixed the problem with saves!The line:
GameText.MapList['FIRSTMAP'] = ['FirstMap']
must look like:
GameText.MapList['FIRSTMAP'] = 'FirstMap'
The value of GameText.MapList['FIRSTMAP'] must be a string, not a list
Yeah, I've looked into other people's .lvl files and found a few lines I didn't put into mine. Those bitmaps lines fixed the textures, thanks!Have you got....
Bitmaps -> ..\..\3dObjs\3dobjs.mmp
... in your .lvl file?
Oh, right, thanks, I've been trying to use an object instead of initial variable, that was the problem!You need to activate the damage with:
and deactivate it when it's finished with:
('spike' is the variable the object is assigned to. )
Users browsing this forum: No registered users and 2 guests