Error editing: "Found duplicate parameter NULL"

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
Matrix

Error editing: "Found duplicate parameter NULL"

Post by Matrix »

Hi all

I've been using Return To Chaos - V0.34 - 14 February 2005 editor to edit the DM_Original text file. I've altered Zeds health but it doesn't show in the game when i start new.
When i reload the editor i get the folowing error Found duplicate parameter NULL " Was this intended?.
What does it mean and how do i fix it so what i've edited shows in the game.

Thank you.
User avatar
Gambit37
Should eat more pies
Posts: 13773
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Post by Gambit37 »

You should have more information with the error message telling you what line of the file is affected and what parameter.

Without this extra info, it's difficult to know what the problem is. Can you please check again?
Guest

Post by Guest »

Yeah i thought as much myself but i don't seem to have any more info.


Item ref object id item location all just have - under them.


And then i just have that message of the error above.

Am i right in thinking i can alter the health ect of people. I've chnged Zed's health. And was trying to add a weapon to him.
Matrix

Post by Matrix »

I've even left some speed boots on the floor and there not there.

Can't work out what i've done wrong????

I've edited DM_Original and even tried just the DM text file but with no luck and same error?

Any help would be great please

Thank you.
User avatar
Gambit37
Should eat more pies
Posts: 13773
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Post by Gambit37 »

Seems like you have two problems:

1) The error you specified in the first post
2) Changes you make are not being shown in the dungeon

Errors in the .TXT file that are major will cause number (2). But I suspect you're missing out a step and not compiling your dungeon and just selecting the original compiled version that comes bundled with the game. Have you read the instructions on how to compile?
Guest

Post by Guest »

Yeah i think your right about not compiling. I just save the what i've edited to the dm text file and thats it.

Have a read on how to compile and have to say i don't understand what to do????

Thanks for your help so far
User avatar
beowuuf
Archmastiff
Posts: 20686
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Post by beowuuf »

You edit the config.txt file, simply putting the line 'Compile<tab>this/is/where/the/thing/is.txt' and it will compile the given text file when you start RTC. You can then comment this line out with ';' at the front create a quick switch between playing RTC normally and compiling the dungeon file (you can play the dungeon you compile though, so this only applies if you wanted to check out inserting charatcers or play a different game to the one you are playtesting)
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

Hi there. Does RTC not give you anything more in the error log file? In particular, I would expect it to give a line number on which it found the duplicate NULL.

If there really is nothing else - can you send me your modified txt file and I'll take a look at it for you.
Matrix

Post by Matrix »

No i don't get any more in the error log mate.
Really can't get this to work and i can't see why :(.Just done what Beowuuf said and nothing happened i must be doing something wrong but i can't see it .

Copy of my Config.txt -

; Return To Chaos
; (c)2005 George Gilbert
;
; Primary configuration file.
;
; IMPORTANT - THIS IS A TAB DELIMITED FILE; BE CAREFUL HOW YOU EDIT IT.
RTC.exe DM\Modules\work.txt
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Game set up ;
; COMPILE DM\modules\work.txt ;
; SCREEN_MODE - Screen mode to use ;
; SCREENSHOTS - Save just the game area (NORMAL) or include borders too (ALL) ;
; KEY_ - Define the keys for movement and spell casting ;
; ;
; The screen mode must either be set to AUTO or a valid, x-delimited, screen mode ;
; (for example 640x480x24). ;
;




Ideas on what i'm doing wrong???

George Gilbert you on msn so i can send you the info of whats happening??

Thanksing sorry to be a pain and i'm all :(
User avatar
Gambit37
Should eat more pies
Posts: 13773
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Post by Gambit37 »

Anything with a ; in front of it is a comment -- so it will be ignored.

Move the compile line further down in the file to somewhere more sensible and then remove the ; from in front of it -- then when you run RTC, your dungeon will be compiled and you'll be dropped right at the entrance rather than presented with a menu of dungeons.

Of course, if there are any critical errors in your dungeon, RTC will warn you during compile.
Matrix

Post by Matrix »

Moved the compile line down and got a terminal error pop up.

This maybe a result of an error in your config text orthat the rtc has not been installed correctly

:-


RTC (V0.34) Diagnostic file - Wed Jun 08 14:50:25 2005

Error:
an access violation exception.

Stack Dump:
RTC.InitFile();
RTC.WinMain();
Guest

Post by Guest »

Ok ignor the above post i seen where i went wrong on that one.
At last it seems to work fine now got a warning come up before it loaded but it ran fine. And things i changed with the characters seem to have worked.

Thank you all for your help and most of all patients.
Hope to learn other things and dare say i'll be asking for help again in here.
Can't wait to play this brill game once more :)

Thanks.
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

Thats great news that you've got you changes compiling. I'd still be interested in tracking down the root cause of the warning so that RTC generates a more useful output to the log file. If you're still getting the cryptic warning message, let me know.
guy who cant use DM Java

D'oh

Post by guy who cant use DM Java »

Umm, im getting this same duplicate Null in line 23 of DM_original.txt

I'll give you both logs:

RTC V0.34 Error Log
Starts: Sun Feb 05 06:16:02 2006

--------------------------------

---- Reading file "Modules\DM_Original.txt" ----

Warning (line 23): Found duplicate parameter "NULL". Was this intended?

------------------------------
Summary

Critical Errors: 0
Warnings : 1

------------------------------
Ends: Sun Feb 05 06:16:06 2006

THis is from the crash log:

RTC (V0.34) Diagnostic file - Sun Feb 05 06:16:32 2006

Error:
an access violation exception.

Stack Dump:
RTCMedia.DrawTransAlpha(pointer 0x0655DFC0, pointer 0x00A32228, int 0, int 0, pointer 0x0012FE18, int 0);
RTC.ScaleBitmap(int 637, pointer 0x0655DFC0, int 0, int 0, int 0);
RTC.CacheBitmap(int 637, int 0);
RTC.DrawBitmap(pointer 0x00A408D8, int 637, int 0, int 68, int 198, word 100, float 0);
RTC.DrawCharacterViewBackground(int 1736, int 0, int 106);
RTC.DrawCharacterView(int 1736);
RTC.ProgStateInMirror();
RTC.DoFrame(int 52);
RTCModule.ParseDungeonItemWall(pointer 0x0012F684, int 1155, string "3043");
RTCModule.ParseDungeonItemWall(pointer 0x0012F684, int 803, string "2294");
RTCModule.ParseDungeonItemWall(pointer 0x0012F684, int 801, string "2291");
RTCModule.ParseDungeonItemWall(pointer 0x0012F684, int 476, string "1723");
RTCModule.ParseDungeonItemWall(pointer 0x0012F684, int 457, string "1707");
RTCModule.ParseDungeonItemWall(pointer 0x0012F684, int 356, string "1638");
RTCModule.ParseDungeonItemWall(pointer 0x0012F684, int 308, string "1596");
RTCModule.ParseDungeonItemWall(pointer 0x0012F684, int 139, string "1130");
RTCModule.ParseDungeonItems(pointer 0x0012F684);
RTCModule.ParseDungeonTextFile(string "Modules\\HELP.RTC");
RTC.InitSecondary();
RTC.ProgStateIntroContinue2();
RTC.DoFrame(int 7);
RTC.WinMain();

Does anybody know what this means??
Guest

Post by Guest »

sorry that HELP.txt bit is from another test i did... (re-savng the dungeon.. im such a dunce)
Guest

Post by Guest »

actually no worries, i found it :)

For some reason with the new objects in the DM_original.txt file when you save after editing it compiles a double null in the monster rust
d'oh

Post by d'oh »

am i being dumb??

there was no warning when compiling this time

i just got


RTC (V0.34) Diagnostic file - Sun Feb 05 06:39:33 2006

Error:
an access violation exception.

Stack Dump:
RTCMedia.DrawTransAlpha(pointer 0x00C5B108, pointer 0x00A32228, int 0, int 0, pointer 0x0012FE18, int 0);
RTC.ScaleBitmap(int 637, pointer 0x00C5B108, int 0, int 0, int 0);
RTC.CacheBitmap(int 637, int 0);
RTC.DrawBitmap(pointer 0x00A408D8, int 637, int 0, int 68, int 198, word 100, float 0);
RTC.DrawCharacterViewBackground(int 1736, int 0, int 106);
RTC.DrawCharacterView(int 1736);
RTC.ProgStateInMirror();
RTC.DoFrame(int 52);
RTCModule.ParseDungeonItemWall(pointer 0x0012F684, int 1155, string "3043");
RTCModule.ParseDungeonItemWall(pointer 0x0012F684, int 803, string "2294");
RTCModule.ParseDungeonItemWall(pointer 0x0012F684, int 801, string "2291");
RTCModule.ParseDungeonItemWall(pointer 0x0012F684, int 476, string "1723");
RTCModule.ParseDungeonItemWall(pointer 0x0012F684, int 457, string "1707");
RTCModule.ParseDungeonItemWall(pointer 0x0012F684, int 356, string "1638");
RTCModule.ParseDungeonItemWall(pointer 0x0012F684, int 308, string "1596");
RTCModule.ParseDungeonItemWall(pointer 0x0012F684, int 139, string "1130");
RTCModule.ParseDungeonItems(pointer 0x0012F684);
RTCModule.ParseDungeonTextFile(string "Modules\\DM_Original.RTC");
RTC.InitSecondary();
RTC.ProgStateIntroContinue2();
RTC.DoFrame(int 7);
RTC.WinMain();
Guest

Post by Guest »

RTC V0.34 Error Log
Starts: Sun Feb 05 06:41:57 2006

--------------------------------

---- Reading file "Modules\DM_Original.txt" ----


------------------------------
Summary

Critical Errors: 0
Warnings : 0

------------------------------
Ends: Sun Feb 05 06:42:01 2006
User avatar
Gambit37
Should eat more pies
Posts: 13773
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Post by Gambit37 »

Hmmm, I can usually help with errors in a .LOG file but as you have none, that'll be one for George, the programmer. You'll probably need to send him your dungeon.

On another note, George, I'm very interested in this function at the top of the diagnostic: RTCMedia.DrawTransAlpha

:) :) :)

Oh, and Guest, please consider registering here, it makes it so much better and easier for us to help you.
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

Hi,

As Gambit said, as there's no error log, please can you send me your dungeon txt file (together with any additional resources - bitmaps etc - that it uses) and I'll take a look at the problem for you.

Oh, and Gambit, stop getting quite so excited, it's the shading algorithm for drawing objects at a distance; not what you think it is... :wink:
Da_Ruby
Novice
Posts: 17
Joined: Sun Feb 05, 2006 7:43 am

Hrmm Ok, ive registered :)

Post by Da_Ruby »

Right ok, i'm going to start again with a fresh install and do what i want to do at the same time as deleting that double null string and se what happens :)
User avatar
Gambit37
Should eat more pies
Posts: 13773
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Post by Gambit37 »

Re: TransAlpha - yeah, I thought as much. ;)
User avatar
beowuuf
Archmastiff
Posts: 20686
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Post by beowuuf »

Umm, who deleted Da_ruby's topic? I was editing it then it vanished!

Anyway, the .txt file had things converted to smilies, was incomplete, and was also inappropirate to paste at 200-300 odd lines of code!George's e-mail address is available on the raging mole website http://www.raginmole.com/RTC and should be posted there!
User avatar
beowuuf
Archmastiff
Posts: 20686
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Post by beowuuf »

Copy without dungeon:

"Ok i dont actually have a .log file. I have DM_Original.txt (the dungeon) and the same file name but its the errors warning report...

So what I have is this:

RTC (V0.34) Diagnostic file - Sun Feb 05 16:54:37 2006

Error:
an access violation exception.

Stack Dump:
RTCMedia.DrawTransAlpha(pointer 0x069E9008, pointer 0x00A32228, int 0, int 0, pointer 0x0012FE18, int 0);
RTC.ScaleBitmap(int 633, pointer 0x069E9008, int 0, int 0, int 0);
RTC.CacheBitmap(int 633, int 0);
RTC.DrawBitmap(pointer 0x00A408D8, int 633, int 0, int 68, int 198, word 100, float 0);
RTC.DrawCharacterViewBackground(int 1730, int 0, int 106);
RTC.DrawCharacterView(int 1730);
RTC.ProgStateInMirror();
RTC.DoFrame(int 52);
RTCModule.ParseDungeonItemWall(pointer 0x0012F684, int 1159, string "3043");
RTCModule.ParseDungeonItemWall(pointer 0x0012F684, int 807, string "2294");
RTCModule.ParseDungeonItemWall(pointer 0x0012F684, int 805, string "2291");
RTCModule.ParseDungeonItemWall(pointer 0x0012F684, int 480, string "1723");
RTCModule.ParseDungeonItemWall(pointer 0x0012F684, int 461, string "1707");
RTCModule.ParseDungeonItemWall(pointer 0x0012F684, int 360, string "1638");
RTCModule.ParseDungeonItemWall(pointer 0x0012F684, int 312, string "1596");
RTCModule.ParseDungeonItemWall(pointer 0x0012F684, int 146, string "1130");
RTCModule.ParseDungeonItems(pointer 0x0012F684);
RTCModule.ParseDungeonTextFile(string "Modules\\DM_Original.RTC");
RTC.InitSecondary();
RTC.ProgStateIntroContinue2();
RTC.DoFrame(int 7);
RTC.WinMain();

RTC V0.34 Error Log
Starts: Sun Feb 05 16:54:11 2006

--------------------------------

---- Reading file "Modules\DM_Original.txt" ----


------------------------------
Summary

Critical Errors: 0
Warnings : 0

------------------------------
Ends: Sun Feb 05 16:54:15 2006

"
Da_Ruby
Novice
Posts: 17
Joined: Sun Feb 05, 2006 7:43 am

Post by Da_Ruby »

hehe uts only happening when i play thru after compiling. If i exit, remove the compile then play it ti runs fine :)
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

Hmmm - can you still send me the txt file though. There's an underlying problem (that although you can ignore for now) is something that ought to be fixed.
Da_Ruby
Novice
Posts: 17
Joined: Sun Feb 05, 2006 7:43 am

Post by Da_Ruby »

ok yeah, no problem
Post Reply