View unanswered posts | View active topics It is currently Fri Dec 27, 2024 8:18 am



Reply to topic  [ 3 posts ] 
 Loader looking for the Wrong File 
Author Message

Joined: Thu Jul 19, 2012 1:34 am
Posts: 2
Reply with quote
Post Loader looking for the Wrong File
Hey everybody. I was trying to make a simple weapon mod, but when I load up Cortex Command, it crashes, but the error message is really strange.
The error is when it tries to load the actual sprite for the gun itself.

I tell it in the code that the FilePath = MyFirstMod.rte/Devices/Impact/Impact.bmp
When the crash happens and the error appears, it tells me it cant open file Impact000...
I changed the filename to Impact000.bmp and the code appropriately, but then it says it cant open file Impact000000.
It seems to just be replacing the '.bmp' with 000 and I have no idea why.

I then changed the code to read just Impact000000 no extension, and changed the file name to Impact000000.bmp
Then it tells me it cant find MyFirstMod000 so I have NO clue as to what is happening and I am so confused.
Any help would be awesome! :grin: Love Cortex Command and I want to mod it, but this is just.. wut.


Thu Jul 19, 2012 1:54 am
Profile
User avatar

Joined: Thu Jan 21, 2010 10:59 pm
Posts: 151
Reply with quote
Post Re: Loader looking for the Wrong File
In the .ini, how many frames did you set your weapon to have? If it is two, then you need to add 000 to the end of your bmp but don't add the 000 to the ini when you are referencing your weapon. You also need to make another bmp (Copy and paste) and rename to change 000 to 001 (And remove copy of).

So example:
In the .ini you need:
...
SpriteFile = ContentFile
FilePath = MyFirstMod.rte/Devices/Impact/Impact.bmp
FrameCount = 2
...

In your mod folder you need:
Impact000.bmp
Impact001.bmp


Thu Jul 19, 2012 4:10 pm
Profile

Joined: Thu Jul 19, 2012 1:34 am
Posts: 2
Reply with quote
Post Re: Loader looking for the Wrong File
Worked perfectly! Thanks ShadowStorm :grin:


Thu Jul 19, 2012 6:37 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.040s | 13 Queries | GZIP : Off ]