Data Realms Fan Forums
http://45.55.195.193/

Loader looking for the Wrong File
http://45.55.195.193/viewtopic.php?f=1&t=31465
Page 1 of 1

Author:  DaShwimp [ Thu Jul 19, 2012 1:54 am ]
Post subject:  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.

Author:  ShadowStorm [ Thu Jul 19, 2012 4:10 pm ]
Post subject:  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

Author:  DaShwimp [ Thu Jul 19, 2012 6:37 pm ]
Post subject:  Re: Loader looking for the Wrong File

Worked perfectly! Thanks ShadowStorm :grin:

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