1. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

Ammunition items issues

Discussion in 'Modding Help' started by acromatic, Jan 14, 2015.

  1. acromatic

    acromatic Catapult Fodder

    Messages:
    13
    I developed a gunplay mod last week with great success and have since learned much about modding in KAG. But my guns have unlimited ammo as I'm having great difficulty adding ammunition items very much like the arrows work. I have them displayed in my shop just fine but when I try to spawn them after purchase it doesn't seem to be working at all. No console errors, no items. I've modded it in the same way that arrows work, and it seems like it should be working fine.

    My question is if anyone knows why it doesn't easily work, which files actually need to be edited for this? I'm working with materials.as currently, and my mod is based off of the M16 mod included with the game. All of my weapons are done in the same fashion, can't understand for the life of me why my items don't display. I hate to think that I'll have to add an entire custom layer of code just to get this working. Does anyone know how I might achieve this effect? Sorry if I've been too vague it's not exactly a simple problem, even to explain.

    [SMALL UPDATE]
    While testing again today two of the ammunition types began spawning as they should, I went over all my scripts to see why they worked and not the others, but NOTHING is out of order. I double checked this several times, there is nothing special about the 2 of 6 ammo types, their order in the shop is random, not beginning nor end, their settings aren't unique, and their autopickup code isn't unusual either.

    Another thing is that sometimes my mod doesn't load for the client depending on how I've connected, and that seems to randomly change as well. Normally I delete the cache files before the next round of testing and unless I register the server and connect normally (which isn't good for my ping) than it seems to automatically download the mod without even asking, or sometimes not at all.. and usually if I use the direct connect menu in the game it doesn't load at all even after reconnecting.
    --- Double Post Merged, Jan 15, 2015, Original Post Date: Jan 14, 2015 ---
    [Solved]
    It was suggested to separate game and server files so that resolves some issues, also I found some missing line terminations in my material files so that explains why only two work.. having other issues now but this was a typo bug issue.
     
    Last edited: Jan 27, 2015