Data Realms Fan Forums
http://45.55.195.193/

Help with my first mod.
http://45.55.195.193/viewtopic.php?f=1&t=25756
Page 1 of 2

Author:  Pownani [ Fri Oct 07, 2011 8:24 pm ]
Post subject:  Help with my first mod.

Dear everyone that is reading this.

I started creating my first mod today, and i think i am done. but when i try and start Cortex command up i get an error : Abortion in file .\System\Contentfile.cpp, line 557, because:
Failed to load datafile object with following path and name: Mymod.rte/Devices/Sprites/AA12000
The las frame has been dumped to 'abortscreen.bmp'

What is weird is that i didn't name it AA12000 but AA12.


I will add the files below, if anyone is willing to help a noob modder with his first mod, thank you very much.

Attachments:
AA12.bmp [934 Bytes]
Not downloaded yet
AA12Magazine.bmp [1.1 KiB]
Not downloaded yet
AA12.ini [3.55 KiB]
Downloaded 219 times
Index.ini [84 Bytes]
Downloaded 210 times

Author:  Asklar [ Fri Oct 07, 2011 10:33 pm ]
Post subject:  Re: Help with my first mod.

Code:
   FrameCount = 2

That's your problem.

You only have one sprite, so, change FrameCount to 1 instead of 2.

Author:  Pownani [ Sat Oct 08, 2011 8:37 am ]
Post subject:  Re: Help with my first mod.

That is it? wow, amazing.
So i did everything else right? i didn't expect it to be such an easy error.
Oh, and i have one more question, in the file is a 'shotgunreload.lua' Do you think i can change that in any way.
Right now i am a little afraid to change Lua code.

Thanks very much Asklar.

Author:  Gotcha! [ Sat Oct 08, 2011 9:26 am ]
Post subject:  Re: Help with my first mod.

What would you like to change? You can also just remove the entire line from your .ini if you don't want that lua file attached.

Author:  Pownani [ Sat Oct 08, 2011 9:53 am ]
Post subject:  Re: Help with my first mod.

Well, i am not 100% sure what it does, but if it is something i don't need i would rather not have it there, because it is confusing for me (Noob).

Thanks in advance.

Author:  Pownani [ Sat Oct 08, 2011 10:01 am ]
Post subject:  Re: Help with my first mod.

Oh, and i just tested it out and i am having some major sprite problems.
When i open the buy menu i see the AA12 and the sprite is some weird yellow greenish stripe thing, not what i made.
Then when i but it it does show up correct but there is no magazine at any time, and the gun makes a part of my actors body go invisible, and the when i turn to the left with the gun equiped it turns yellow greenish stripy thing again.

If anyone can help me (again) thanks in advance.

Author:  akblabla [ Sat Oct 08, 2011 10:07 am ]
Post subject:  Re: Help with my first mod.

Pownani wrote:
That is it? wow, amazing.
So i did everything else right? i didn't expect it to be such an easy error.
Oh, and i have one more question, in the file is a 'shotgunreload.lua' Do you think i can change that in any way.
Right now i am a little afraid to change Lua code.

Thanks very much Asklar.


Copy the shotgunreload.lua to your mod and refer to that instead of the one in the base.rte and play around with your copy. Is there something specific you want your shotgun to do via lua? Then I might be able to help you realize what you want to make :)

Author:  Pownani [ Sat Oct 08, 2011 10:10 am ]
Post subject:  Re: Help with my first mod.

Well, it would be nice to get it working first :P

Author:  Kettenkrad [ Sat Oct 08, 2011 10:35 am ]
Post subject:  Re: Help with my first mod.

Pownani wrote:
Oh, and i just tested it out and i am having some major sprite problems.
When i open the buy menu i see the AA12 and the sprite is some weird yellow greenish stripe thing, not what i made.
Then when i but it it does show up correct but there is no magazine at any time, and the gun makes a part of my actors body go invisible, and the when i turn to the left with the gun equiped it turns yellow greenish stripy thing again.

If anyone can help me (again) thanks in advance.

This happens when your sprite is not in palette. To fix this, open your sprite, select all, then open palette.bmp in Base.rte/, select all, paste over the palette, and then save as, and replace your old weapon. The magazine should appear once the sprite is in palette, sometimes non-palette-d sprites hide things behind them. The shotgun reload script reloades individual rounds into the gun. I'm guessing you're making an AA-12, so that script isn't really necessary.

As Gotcha said, you can remove the entire ScriptPath line if you don't want it anymore. Good luck on your mod!

Author:  Pownani [ Sat Oct 08, 2011 10:38 am ]
Post subject:  Re: Help with my first mod.

Wooow, Kettenkrad that was amazingly helpfull, thank yuo so much, i will try that in like 10 minutes and then i will update my progress here.

Author:  Pownani [ Sat Oct 08, 2011 11:02 am ]
Post subject:  Re: Help with my first mod.

Kettenkrad, i just did what you said and the result is that you see the weapon, with surroounded by white, and a bit of the pallete sticking out at the bottom. What i did is that i just Selected the whole AA12 and i just threw it over the pallete.

Hope you can help, thanks.

Author:  Gotcha! [ Sat Oct 08, 2011 11:10 am ]
Post subject:  Re: Help with my first mod.

What are you using to paint your gun? It seems Paint in Windows 7 destroys your image's palette.
You could try to download Gimp and use that. (It's free.)

Author:  Kettenkrad [ Sat Oct 08, 2011 11:11 am ]
Post subject:  Re: Help with my first mod.

Oh. Crop it as well. Hopefully this will work:
Image
If you're using Windows 7 paint, I don't think that allows you to put the sprites in palette. mspaint XP, GraphicsGale, and Photoshop all work.

Ninja'd.

Author:  Pownani [ Sat Oct 08, 2011 11:14 am ]
Post subject:  Re: Help with my first mod.

Gotcha,

I sure do use Windows 7 paint and i hate it, and i already have gimp installed, but what do i really need to with the pallete i don't completely get it.

Author:  Pownani [ Sat Oct 08, 2011 11:14 am ]
Post subject:  Re: Help with my first mod.

Kettenkrad are you telling me i need to use the sprite you posted there, and what did you do to it that i didn't do?

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