Copy Paste Bug

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
User avatar
Soaponarope
Posts: 180
Joined: Thu Oct 04, 2012 3:21 am

Copy Paste Bug

Post 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
Batty
Posts: 509
Joined: Sun Apr 15, 2012 7:04 pm

Re: Copy Paste Bug

Post 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.
User avatar
Soaponarope
Posts: 180
Joined: Thu Oct 04, 2012 3:21 am

Re: Copy Paste Bug

Post by Soaponarope »

Yes it's happened with most all types of structural assets (walls, floors,etc.) I haven't copied much else.
User avatar
msyblade
Posts: 792
Joined: Fri Oct 12, 2012 4:40 am
Location: New Mexico, USA
Contact:

Re: Copy Paste Bug

Post 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.
Currently conspiring with many modders on the "Legends of the Northern Realms"project.

"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
User avatar
Eleven Warrior
Posts: 752
Joined: Thu Apr 18, 2013 2:32 pm
Location: Australia

Re: Copy Paste Bug

Post 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. :)
User avatar
Soaponarope
Posts: 180
Joined: Thu Oct 04, 2012 3:21 am

Re: Copy Paste Bug

Post 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)
GoldenShadowGS
Posts: 168
Joined: Thu Oct 30, 2014 1:56 am

Re: Copy Paste Bug

Post 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.
Jackard
Posts: 59
Joined: Thu Oct 30, 2014 7:32 pm

Re: Copy Paste Bug

Post by Jackard »

I've had this happen with ceilings, yes, but the crashes happen most often when dealing with invisible platforms.
Batty
Posts: 509
Joined: Sun Apr 15, 2012 7:04 pm

Re: Copy Paste Bug

Post 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. :(
Post Reply