View unanswered posts | View active topics It is currently Sat Dec 28, 2024 3:55 pm



Reply to topic  [ 27 posts ]  Go to page 1, 2  Next
 Help with my first mod. 
Author Message

Joined: Fri Oct 07, 2011 8:10 pm
Posts: 14
Reply with quote
Post 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 203 times
Index.ini [84 Bytes]
Downloaded 187 times
Fri Oct 07, 2011 8:24 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post 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.


Fri Oct 07, 2011 10:33 pm
Profile

Joined: Fri Oct 07, 2011 8:10 pm
Posts: 14
Reply with quote
Post 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.


Sat Oct 08, 2011 8:37 am
Profile
User avatar

Joined: Tue Apr 01, 2008 4:49 pm
Posts: 1972
Location: The Netherlands
Reply with quote
Post 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.


Sat Oct 08, 2011 9:26 am
Profile

Joined: Fri Oct 07, 2011 8:10 pm
Posts: 14
Reply with quote
Post 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.


Sat Oct 08, 2011 9:53 am
Profile

Joined: Fri Oct 07, 2011 8:10 pm
Posts: 14
Reply with quote
Post 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.


Sat Oct 08, 2011 10:01 am
Profile
User avatar

Joined: Wed May 20, 2009 3:10 pm
Posts: 366
Location: Århus, Denmark
Reply with quote
Post 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 :)


Sat Oct 08, 2011 10:07 am
Profile

Joined: Fri Oct 07, 2011 8:10 pm
Posts: 14
Reply with quote
Post Re: Help with my first mod.
Well, it would be nice to get it working first :P


Sat Oct 08, 2011 10:10 am
Profile
User avatar

Joined: Mon Oct 25, 2010 5:51 am
Posts: 1198
Location: Sydney
Reply with quote
Post 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!


Sat Oct 08, 2011 10:35 am
Profile

Joined: Fri Oct 07, 2011 8:10 pm
Posts: 14
Reply with quote
Post 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.


Sat Oct 08, 2011 10:38 am
Profile

Joined: Fri Oct 07, 2011 8:10 pm
Posts: 14
Reply with quote
Post 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.


Sat Oct 08, 2011 11:02 am
Profile
User avatar

Joined: Tue Apr 01, 2008 4:49 pm
Posts: 1972
Location: The Netherlands
Reply with quote
Post 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.)


Sat Oct 08, 2011 11:10 am
Profile
User avatar

Joined: Mon Oct 25, 2010 5:51 am
Posts: 1198
Location: Sydney
Reply with quote
Post 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.


Sat Oct 08, 2011 11:11 am
Profile

Joined: Fri Oct 07, 2011 8:10 pm
Posts: 14
Reply with quote
Post 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.


Sat Oct 08, 2011 11:14 am
Profile

Joined: Fri Oct 07, 2011 8:10 pm
Posts: 14
Reply with quote
Post 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?


Sat Oct 08, 2011 11:14 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 27 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.056s | 14 Queries | GZIP : Off ]