0.28 Editor stuff

Messages are moved here (should anyone ever want to see them again) once they are no longer applicable to the current version (e.g. suggestions that have been implemented or bugs that have been fixed).

Moderator: George Gilbert

Forum rules
Please read the Forum rules and policies before posting. You may Image to help finance the hosting costs of this forum.
Post Reply
WolfHeart
Apprentice
Posts: 40
Joined: Sun Dec 28, 2003 4:20 am
Location: Ohio, USA

0.28 Editor stuff

Post by WolfHeart »

I had something weird happen to me a couple days ago. I was down to the 3 level in a dungeon I am working on. I added a set of steps down to level 4 and then went down and added a set of steps up. I checked to make sure I had no errors and then saved the file and exited to test. Well when I tried to load it into RTC I got a ton of errors. I loaded the editor back up to find that alot of level 3 was gone as well as the stuff I added to level 4. The floortiles were still there just the stuff added to them was gone. I usually make a back up when I am adding things to test out in case I screw up so all I had to do was load the saved backup and redo the last part of 3 and stairs down and up. Not sure what I did to screw it up when i saved but I thought i would post it here so that others remember to save backups often. :wink:

The other thing I was wondering is the "ref" appendage thing i keep seeing. Maybe I missed something posted somewhere and I wanted to ask about it. Is every getting the following:

; Level 0
ref000002-1 FLOORITEM_TELEPORTER 2 0 0 OPBY=(PARTY) DESTINATION=(1,11,1)
ref000007-1 FLOORITEM_TRIGGER 7 0 0 OPBY=(PARTY) ACTION=(TOGGLE) TARGET=(ref000107-1) OPTIONS=(SOUND:SOUND_OTHER_CLANK)

I did'nt see it in the maps that come with 0.28 until I saved something from the editor. Sorry if I missed a post explaining this..
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

The refs are just there to correlate the contents of TARGET=(xxx) commands and individual items. They need to be unique strings (i.e. so the engine knows exactly which item to target) but there's no restriction on what form they take (oh OK, you probably shouldn't put a comma, tab or bracket in it, but broadly speaking call them what you want). The editor calls them all ref something the pre-set dungeons (which I did by hand before I wrote the editor - doh!) are mostly ingeters...makes no odds.

Not sure what happened to your missing levels. Did you edit the file by hand and then load it up into the editor?
WolfHeart
Apprentice
Posts: 40
Joined: Sun Dec 28, 2003 4:20 am
Location: Ohio, USA

Post by WolfHeart »

Not sure what happened to your missing levels. Did you edit the file by hand and then load it up into the editor?

Actually I started a new dungeon from scratch using the 0.28 Editor because at the time I did not know how to load my original in to it. The editor makes it so easy that I was able to do in 30 min what it took me almost a week to do by notepad it is just so great being able to see what I am doing with the editor and being able to jump back in forth. Anyway As I said I started the dungeon from scratch using the editor, it apprears to have glitched when i saved with the editor. I had a backup that was real close to where I was saving again so nothing much lost.
madeducator
Novice
Posts: 11
Joined: Wed May 28, 2003 1:04 am

Editor problem? or my human error?

Post by madeducator »

<<RTC (V0.28) Diagnostic file - Sun Jan 04 10:40:28 2004

Error:
an access violation exception.

Stack Dump:
RTCModule.IsTileAWall(char -1, char -2, char -1);
RTCModule.ParseDungeonItemDoor(pointer 0x0077F4E0, int 16, string "ref010504-1");
RTCModule.ParseDungeonItems(pointer 0x0077F4E0);
RTCModule.ParseDungeonTextFile(string "MODULES/EXAMPLES/newdungeon.txt");
RTC.InitSecondary();
RTC.DoFrame(int 7);
RTC.WinMain();>>

This is the message I got after the editor found no errors. Now the editor will not allow me to open the dungeon at all.

Can tried to edit it in Notepad but the editor wouldn't allow me to open it after that either.

Just curious as to what I'm going wrong.
User avatar
beowuuf
Archmastiff
Posts: 20686
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Post by beowuuf »

Similar error, I started altering TheZoo.txt, all i have done is:

a) delete the top two layers - i agreed to let the editor remove any trigger linkled to anythign i was deleting
b) i cloned a few items - but it was all decorative, really - teleporter hazes cloned to 'doorway' graphics, and pillars clones to 'statues' - neither have new graphics associated, hazes look like doorframes, statues look like pillars
c) added a few texts, teleporters, two doors and a few of my clone decorations to one corridoron level 0 and a room in level 1
d) altered boris and added him as a starting party member


The error i got was this:

RTC (V0.28) Diagnostic file - Sun Jan 04 19:54:41 2004

Error:
an access violation exception.

Stack Dump:
RTC.InitSecondary();
RTC.DoFrame(int 7);
RTC.WinMain();
WolfHeart
Apprentice
Posts: 40
Joined: Sun Dec 28, 2003 4:20 am
Location: Ohio, USA

Post by WolfHeart »

Not sure what happened to your missing levels. Did you edit the file by hand and then load it up into the editor?[/quote]


Ok I am sure you will have read my reply to this msg already and may have responded to it as well. It just happened again and this time I know what I did wrong. My son and I are both working on the dungeon at this point and I had just copied the file into a shared folder so he could transfer it across the network here. There was 2 critical errors apon trying to load the game into the editor. I checked before I exited and saved the maps for errors and there had been none. The two errors were caused because I had copied and area of the level in an unused spot of the same level. I planned to delete the original area after I got the new area working the same way. Well It appears that a couple of the items duplicated in the copy/paste option that were then saved with the whole map caused and error. I went in and tried to just delete the gold key and a shield that 2 skeletons were carrying and resave the game. I got an error that said the program upset windows and would be shut down when i tried to save it. Apon loading it back up I found half the last two levels stuff was missing including stairs down and up and items. So back up often hehe.
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

Beowuuf - Your problem is a bug (which I've fixed and will release for V0.29). To workaround it, simply delete (or comment out) the cloned objects that you are not using in the dungeon. RTC currently crashes when it tries to save a dungeon which specifies, but doesn't use, cloned objects.

Madeducator - not sure what is happening with your dungeon (other than there's a problem with a door). Try looking on the line that begins "ref010504-1" in your text file and see if there's anything "obviously" wrong. Also could you please send me your text file and I'll have a look at it for you as RTC certainly shouldn't crash!
Post Reply