View unanswered posts | View active topics It is currently Sun Dec 29, 2024 5:39 am



Reply to topic  [ 4 posts ] 
 I need help with modding issue. 
Author Message
User avatar

Joined: Sat Jul 25, 2009 4:24 am
Posts: 146
Location: Somewhere in Ohio
Reply with quote
Post I need help with modding issue.
Alrighty then folks, I have a slight malfunction when it comes to making mods so, after learning off the wiki and everyone else, I tried it myself. And failed.

So now I ask the community, the experts, to see what I did wrong and maybe help show me so I do not make the same mistake


Attachments:
GK-34.rte.rar [1.63 KiB]
Downloaded 172 times
Sun May 29, 2011 6:00 am
Profile
User avatar

Joined: Mon Oct 25, 2010 5:51 am
Posts: 1198
Location: Sydney
Reply with quote
Post Re: I need help with modding issue.
Ah, you seem to have a bit of a problem with file-paths and ordering.

Firstly off: The index.
You were referencing the folder, you have to directly reference each file that you need.
Code:
DataModule
   ModuleName = Thiller's Threating Weapon Pack
   IncludeFile = GK-34.rte/GK-34.ini

This one includes the .ini file rather than the folder.

Secondly; things in CC will be read from top to bottom, in the GK-34 file, you have the magazine inside the weapon code. This can be achieved, but only with a grasp of proper tabbing order.

What we need to do is remove the bullet, muzzle flash, and magazine, and have them up top, above the gun code.
Code:
AddEffect = Attachable
   InstanceName = Muzzle Flash SMGs

AddAmmo = MOPixel
   InstanceName = Particle SMG

AddAmmo = Magazine
   InstanceName = Magazine SMG

AddDevice = HDFirearm
   InstanceName = GD-34

Now we have them in the order that they will be read. The muzzle flash can be removed entirely, as it already exists. We can reference the Base.rte one as it already exists.

The next thing is, once again, filepaths.
Code:
   SpriteFile = ContentFile      \ /
      FilePath = GD-34.rte       / \

   SpriteFile = ContentFile              /
      FilePath = GD-34.rte/GK-34.bmp   \/

We have to reference the actual file rather than the folder.

FrameCount refers to the number of frames in a sprite, used for animations, etc. We only have one sprite, so
Code:
   SpriteFile = ContentFile
      FilePath = GD-34.rte/GK-34.bmp
   FrameCount = 1


Up to the AtomGroup, the errors are just spelling. The Atom and DeppGroups are tabbed wrongly, don't hesitate to copy code from vanilla content.

Also, remember to use the things you defined above;
Code:
   Magazine = Magazine
      CopyOf = Magazine SMG - rather than Magazine M16
      ParentOffset = Vector
         X = -2
         Y = 1


It now works in-game but it is out of palette.
Grif wrote:
Your sprites aren't in palette. That's, uh, that's it, the whole problem, right there.

Copy them out of your file, repaste over Palette.bmp (Base.rte/Palette.bmp) and re-save as your file.


And in closing, a useful link.


Also; the edited and working [?] code:


Sun May 29, 2011 8:42 am
Profile
User avatar

Joined: Sat Jul 25, 2009 4:24 am
Posts: 146
Location: Somewhere in Ohio
Reply with quote
Post Re: I need help with modding issue.
Thanks for all the help Kettenkrad, really.

Also this was another issue I found:
Code:
SpriteFile = ContentFile
      FilePath = GD-34.rte/

It was misspelled GD instead of GK.

Wait- how do i specifiy this
Code:
IncludeFile = GK-34.rte
?

Such as tell that it is in a file


Sun May 29, 2011 1:59 pm
Profile
User avatar

Joined: Mon Oct 25, 2010 5:51 am
Posts: 1198
Location: Sydney
Reply with quote
Post Re: I need help with modding issue.
No prob.

Im not sure I understand that last question..


Mon May 30, 2011 7:26 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.043s | 14 Queries | GZIP : Off ]