OpenXcom Forum
Modding => Work In Progress => Topic started by: Kikupj on August 21, 2013, 12:58:03 am
-
Hello,new member glad to be be here.I'm looking forward to modding in some new content to share with you all but i'm having a problem adding a duplicate weapon from the default ones into the game.I literally copied and pasted the STR_PISTOL entries into a new rul file,ufopaedia entries and all but it doesn't seem to show up in the game.I'm using the latest 8/20 git build by the way.Appreciate any of your help.
This is the rul file for mypistol
items:
- type: STR_MYPISTOL
size: 0.1
costBuy: 800
costSell: 600
weight: 5
bigSprite: 3
floorSprite: 3
handSprite: 96
bulletSprite: 1
fireSound: 4
compatibleAmmo:
- STR_MYPISTOL_CLIP
accuracySnap: 60
accuracyAimed: 78
tuSnap: 18
tuAimed: 30
battleType: 1
invWidth: 1
invHeight: 2
armor: 20
attraction: 1
- type: STR_MYPISTOL_CLIP
size: 0.1
costBuy: 70
costSell: 52
weight: 3
bigSprite: 4
floorSprite: 4
hitSound: 22
hitAnimation: 26
power: 26
damageType: 1
clipSize: 12
battleType: 2
armor: 12
attraction: 1
ufopaedia:
- id: STR_MYPISTOL
type_id: 4
section: STR_WEAPONS_AND_EQUIPMENT
text: STR_MYPISTOL_UFOPEDIA
-
you need to link your .rul file from the config file in your user folder. Then the game will look at your file
It looks like your are using the same sprites, and all make sure you call the right sprites, if you want to add new sprites you will need to add those to the game also.
Also if you want to add more content, you need to know if you are able to research your weapon, manufacture it, and listed on the UFOpedia.
Once you have done that you have to make sure that the language file has the strings you are listing STR_MYPISTOL defined as well as STR_MYPISTOL_UFOPEDIA
if you do not want the STR_MYPISTOL_CLIP to show on the ufopedia you need to set that value to false. just check other items that are not listed in the pedia.
If i forget something someone more experienced will point it out :)
-
Thanks for your help.I scrapped my progress,and decided to try to install the Grenade Launcher mod,but I notice everytime OpenXcom starts,
it asks me to select a language then,when I go into the ufopedia to check for the grenade launcher,it isn't there.I also noticed that the config file
keeps removing my .rul entries that I put in.
Is this some sort of bug with this current git build why it won't detect additional rul files?
-
This is a current bug due to the transition to the new YAML.
Please put all the blame in SupSuper :)
On a serious note, they are aware and working to fix it, I have no idea how hard it will be :)