Data Realms Fan Forums
http://45.55.195.193/

I need help with a weapon's script: UPDATE
http://45.55.195.193/viewtopic.php?f=75&t=20497
Page 1 of 1

Author:  Leopard2 [ Fri Dec 10, 2010 5:36 am ]
Post subject:  I need help with a weapon's script: UPDATE

Hello everyone (if there's really anyone there reading my request, jaja), I'm a noob in this thing of making mods.
So, I've been creating a simple weapon (very simple), to get used to with the scripting, spriting, etc, and when I tried to test it, the game came out with this error "Abortion in file .\System\Reader.cpp, line 531, because: Could not match property in RifleLeopardo.rte/Devices/RL/RL.ini at line 2! The last frame has been dumped to 'abortscreen.bmp' ". I checked the line 2 and there's nothing wrong, but obviously there a bunch of mistakes that I've made that are bothering me.

Here's the whole folder, with the new RL.ini

Attachment:
RifleLeopardo.rte.rar [136.16 KiB]
Downloaded 193 times

Author:  Coops [ Fri Dec 10, 2010 7:20 am ]
Post subject:  Re: I need help with a weapon's script

Your Coding is using spaces and is using too many. You've got the right Idea going on but use a Tab instead of spaces.

That should Help.

Author:  411570N3 [ Fri Dec 10, 2010 7:20 am ]
Post subject:  Re: I need help with a weapon's script

You appear to be using spaces instead of tabs. Press the tab key instead of pressing space a lot of times.
EDIT: Ninja'd

Author:  Leopard2 [ Fri Dec 10, 2010 3:41 pm ]
Post subject:  Re: I need help with a weapon's script

Coops9753 wrote:
Your Coding is using spaces and is using too many. You've got the right Idea going on but use a Tab instead of spaces.

That should Help.


Thank you very much, man. Like I supposed, it was a typical noob mistake, jajaja. I'll check the coding.

Author:  Leopard2 [ Fri Dec 10, 2010 3:47 pm ]
Post subject:  Re: I need help with a weapon's script

411570N3 wrote:
You appear to be using spaces instead of tabs. Press the tab key instead of pressing space a lot of times.
EDIT: Ninja'd


Thanks a lot, dude. I'll fix my spaces problem. Oh, I almost forgot it, one silly question: Do I have to rewrite all? or there's another way to change those spaces for tabs?

Author:  carriontrooper [ Fri Dec 10, 2010 4:38 pm ]
Post subject:  Re: I need help with a weapon's script

Leopard2 wrote:
411570N3 wrote:
You appear to be using spaces instead of tabs. Press the tab key instead of pressing space a lot of times.
EDIT: Ninja'd


Thanks a lot, dude. I'll fix my spaces problem. Oh, I almost forgot it, one silly question: Do I have to rewrite all? or there's another way to change those spaces for tabs?


Sadly, yes, you must use manual when dealing with tabs. One thing that would help is the 'find' command, which could detect triple spaces, which you could promptly replace with a tab.

Author:  Leopard2 [ Sun Dec 12, 2010 5:53 pm ]
Post subject:  Re: I need help with a weapon's script

carriontrooper wrote:
Leopard2 wrote:
411570N3 wrote:
You appear to be using spaces instead of tabs. Press the tab key instead of pressing space a lot of times.
EDIT: Ninja'd


Thanks a lot, dude. I'll fix my spaces problem. Oh, I almost forgot it, one silly question: Do I have to rewrite all? or there's another way to change those spaces for tabs?


Sadly, yes, you must use manual when dealing with tabs. One thing that would help is the 'find' command, which could detect triple spaces, which you could promptly replace with a tab.


Hey dude, sorry to bother you once again, but I replaced all the spaces por tabs and now it says " Property name wasn't followed by a value in RifleLeopardo.rte/Devices/RL/RL.ini at line 2". This thing is driving me crazy! jajaja. So if you can tell what mistake I'm making now, I'll be grateful.

Author:  dragonxp [ Sun Dec 12, 2010 7:28 pm ]
Post subject:  Re: I need help with a weapon's script

We'd need to know Line 2 of your code.
It would help if we had the new .ini and your .rte

Author:  Coops [ Sun Dec 12, 2010 8:31 pm ]
Post subject:  Re: I need help with a weapon's script: UPDATE

Scrap the .ini, make a new one.

As bad as that sounds. Dont copy and paste the entire code onto the new one, it wont fix that. You gotta start off with an entirely new .ini

I could be wrong though, but through my experiences, this problem was usually fixed by that.

Author:  Leopard2 [ Mon Dec 13, 2010 2:41 am ]
Post subject:  Re: I need help with a weapon's script: UPDATE

Coops9753 wrote:
Scrap the .ini, make a new one.

As bad as that sounds. Dont copy and paste the entire code onto the new one, it wont fix that. You gotta start off with an entirely new .ini

I could be wrong though, but through my experiences, this problem was usually fixed by that.


Roger that, man. I'll rewrite everything.

Author:  Geti [ Mon Dec 13, 2010 5:34 am ]
Post subject:  Re: I need help with a weapon's script: UPDATE

Don't use notepad, use a more modern text editor with indentation aid and intelligent replace. Seriously, if they were all lined up in notepad you could have counted however many spaces were visually equal to a tab and replaced that many spaces with a tab across all documents, which would've saved you a lot of time.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/