Data Realms Fan Forums
http://45.55.195.193/

Gun not appearing in game
http://45.55.195.193/viewtopic.php?f=1&t=45955
Page 1 of 1

Author:  Rockchevy [ Fri May 22, 2015 5:12 pm ]
Post subject:  Gun not appearing in game

Hey y'all. I've been working on a little mod and after finishing an M1911 I decided to do a MAS36. I've fiddled with the code until I got no more errors but sadly when I launch the game the rifle wont appear in the list of purchasable firearms. I've added the line "Buyable = 1" and made sure it should appear but still nothing. I'd like a bit of help for this.
Thanks in advance, here's the file.

Attachments:
Long Rifles.ini [4.69 KiB]
Downloaded 378 times

Author:  4zK [ Fri May 22, 2015 5:38 pm ]
Post subject:  Re: Gun not appearing in game

First of all, all presetnames are case sensitive. The round name here is defined as "7.5 French round" while the magazine tries to find "7.5 French Round".

Secondly, your code structure for the magazine part is a bit off, there's one too many of those, err... "wide" spaces on each line for some reason.

It's really just the game getting increasingly worse at detecting errors. In this instance, it didn't even bother stopping the game from loading.

Author:  Rockchevy [ Fri May 22, 2015 6:16 pm ]
Post subject:  Re: Gun not appearing in game

I fixed the error concerning the case and the one concerning the spaces (I copied the code from the Dreadnought MG's mag since it's invisible and immaterial and the MAS has an internal mag) but now it tells me I have an error at line 57 but I dont have an idea about what can be the source of the problem. Looked around on the forums but nothing came up.

PS: whoops, forgot the updated file.

Attachments:
Long Rifles.ini [4.65 KiB]
Downloaded 367 times

Author:  Arcalane [ Fri May 22, 2015 11:44 pm ]
Post subject:  Re: Gun not appearing in game

Improper indentation. AutoGenerate is a setting for the DeepGroup, so it should be at the same 'depth' as the PresetName line.

Author:  Rockchevy [ Sat May 23, 2015 11:15 am ]
Post subject:  Re: Gun not appearing in game

Thanks both of you, it now works!

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