Page 1 of 1

Copy Paste Bug

Posted: Thu Nov 20, 2014 4:26 pm
by Soaponarope
I'm getting bug with the editor when using copy and paste. It doesn't happen every time but a lot. When pasting my copied asset the new one changes the name but erases the old one. For instance dungeon_ceiling_0000_2 simply becomes dungeon_ceiling_0000_3. Hitting paste again after this crashes the editor giving me this in the log.

[string "GameObject.lua"]:0: attempt to index field 'map' (a nil value)
stack traceback:
[string "GameObject.lua"]: in function 'destroy'
[string "Map.lua"]: in function 'removeWall'
[string "Arch.lua"]: in function 'spawn'
[string "DungeonEditor.lua"]: in function 'spawn'
clipboard:1: in main chunk
[string "DungeonEditor.lua"]: in function 'pasteEntities'
[string "DungeonEditor.lua"]: in function 'mapView'
[string "DungeonEditor.lua"]: in function 'update'
[string "Grimrock.lua"]: in main chunk

Re: Copy Paste Bug

Posted: Thu Nov 20, 2014 4:37 pm
by Batty
Does it happen with objects other than ceiling? The 12 or so ceiling pieces are all designed to fit a certain way, you may be creating a conflict.

Re: Copy Paste Bug

Posted: Thu Nov 20, 2014 4:45 pm
by Soaponarope
Yes it's happened with most all types of structural assets (walls, floors,etc.) I haven't copied much else.

Re: Copy Paste Bug

Posted: Thu Nov 20, 2014 5:11 pm
by msyblade
I got this with dungeon_wall_02 while trying to cover up the map edge in a corridor. It didn't crash, but it repeatedly deleted the copied wall. I ended up manually placing one nearby, and moved it into place.

Re: Copy Paste Bug

Posted: Fri Nov 21, 2014 1:39 pm
by Eleven Warrior
Yep I also had the same probs as mysblade.. Oh and good to see you back mysblade :) Man you are the answer to all mate. I love all your words of wisdom bro. :)

Re: Copy Paste Bug

Posted: Thu Nov 27, 2014 4:54 pm
by Soaponarope
Surprised no one else is getting a crash though. Right now this bug is very frustrating for me cause I can't seem to copy and paste assets much at all and when trying to build unusual areas like underwater temples a large amount of wall/floor/ceiling assets are needed.(which I guess may be the problem)

Re: Copy Paste Bug

Posted: Thu Nov 27, 2014 5:18 pm
by GoldenShadowGS
I get crashes when copy pasting floor/ceiling/or wall pieces too. So I just stopped doing that action. Copy paste seems to work fine for other things though.

Re: Copy Paste Bug

Posted: Thu Nov 27, 2014 6:04 pm
by Jackard
I've had this happen with ceilings, yes, but the crashes happen most often when dealing with invisible platforms.

Re: Copy Paste Bug

Posted: Thu Nov 27, 2014 6:42 pm
by Batty
Soap, now I'm getting this error too, happened with a floor piece repeatedly. Another object also, I forget which. I either save before I try copy/paste, or just don't do it at all. It sometimes happens on the first paste or it might be on the fifth, unpredictable. :(