04-27-2016, 11:01 AM
04-27-2016, 11:32 AM
You can use the cheat command produce() in a program with random coordinates for this, so you can for example place in scene.txt an unreachable bot or alien (maybe underground somehow? not sure if "h=-Value" works for stuff other than decoration) , with script that spawns items on start and does nothing else.
Like
CreateObject pos=-800;-800 dir type=AlienAnt script1="%lvl%/SPAWNRANDOMSTUFF.TXT" run=1 selectable=0
Not sure if it works for decoration items though, because of their their (lack of) categories, probably no![Sad Sad](https://colobot.info/forum/images/smilies/sad.png)
Like
CreateObject pos=-800;-800 dir type=AlienAnt script1="%lvl%/SPAWNRANDOMSTUFF.TXT" run=1 selectable=0
Not sure if it works for decoration items though, because of their their (lack of) categories, probably no
![Sad Sad](https://colobot.info/forum/images/smilies/sad.png)
04-27-2016, 11:59 AM
For decorations you need to insert object number, like produce(654);
Full list at https://github.com/colobot/colobot/blob/...ect_type.h
Full list at https://github.com/colobot/colobot/blob/...ect_type.h
04-28-2016, 07:04 AM
(04-27-2016, 11:32 AM)True Destroyer Wrote: [ -> ]an unreachable bot or alien (maybe underground somehow? not sure if "h=-Value" works for stuff other than decoration) , with script that spawns items on start and does nothing else.This is what LevelController is for:
Like
CreateObject pos=-800;-800 dir type=AlienAnt script1="%lvl%/SPAWNRANDOMSTUFF.TXT" run=1 selectable=0
Code:
LevelController script="%lvl%/SPAWNRANDOMSTUFF.TXT"
04-29-2016, 06:39 PM
I think it's a good time to document this LevelController aka "GhostBot" thingie and other scene related stuff somewhere. Maybe we should do some pages about creating (user-)levels in SatCom instead of Wiki, GDD, etc.
I think it would be easy and quick enough to just "port" and update original PDF document about creating (user-)levels. Then every chapter would be different SatCom page, there would be also images from original PDF (if I remember correct, in ceebot.zip there was all images from that PDF in better quality).
Porting that PDF would be good start for making it up-to-date. It will be enough easy to add something there, update or translate this.
I think it would be easy and quick enough to just "port" and update original PDF document about creating (user-)levels. Then every chapter would be different SatCom page, there would be also images from original PDF (if I remember correct, in ceebot.zip there was all images from that PDF in better quality).
Porting that PDF would be good start for making it up-to-date. It will be enough easy to add something there, update or translate this.