Jump to content

Vitalsine

Member
  • Posts

    11
  • Joined

  • Last visited

About Vitalsine

  • Birthday 04/17/1985

Profile Information

  • Gender
    Man

Vitalsine's Achievements

  1. I`ve tested that fix yeasterday... It has infinite ammo on multiplayer... BTW, how I enable mods on multiplayer, without simply merging the media folder from vanilla with the media folders from the mods? (found in the forums) Me and my brother are using my modified files on my private server and we don't have infinite ammo. Weird lol. I must have made an additional change that I did not note. Sorry!
  2. I thought canning was added in a recent build? I know jars/lids and vinegar are in. Haven't been able to get it to work yet though.
  3. After several tests I've got it working. It was easier than I thought. If you'd like to make the changes yourself here is the info: 1. Go to /username/Zomboid/mods/NCYawMod/lua/shared/Reloading/ 2. Rename ISReloadUtil.lua to NCYawModReload.lua 3. Open the file with Notepad ++ or similar editor and replace the ENTIRE FILE with this code: --/** ==================================================**/----/** NCYawMod Reload Vitalsine Fix **/----/** ==================================================**/-- local RRugerPistol = { type = "RugerMarkIII", moduleName = 'NCYawMod', reloadClass = 'ISSemiAutoWeapon', ammoType = 'RugerMarkIIIMag', clipName = 'Ruger Mk III Magazine', clipIcon = 'Magazine_RugerMarkIII', shootSound = '22LR_Handgun', clickSound = 'DryFire_Pistol', ejectSound = 'stormy9mmClipEject', insertSound = 'LoadMagazine_Pistol', rackSound = 'PistolSlide', containsClip = 1, maxCapacity = 10, reloadTime = 10, rackTime = 10, clipData = RRugerPistolMag}; local RRugerPistolMag = { type = "RugerMarkIIIMag", moduleName = 'NCYawMod', reloadClass = 'ISReloadableMagazine', clipType = 'RugerMarkIIIMag', ammoType = 'Bullets22LR', shootSound = 'none', clickSound = nil, ejectSound = 'none', insertSound = 'LoadRoundExternalMag', rackSound = 'LoadRoundExternalMag', containsClip = 0, maxCapacity = 10, reloadTime = 10, rackTime = 10}; local RBeretta9mmPistol = { type = "Beretta92FS", moduleName = 'NCYawMod', reloadClass = 'ISSemiAutoWeapon', ammoType = 'Beretta92FSMag', clipName = 'Beretta 92FS Magazine', clipIcon = 'Magazine_Beretta92FS', shootSound = '9x19mmLuger_Handgun', clickSound = 'DryFire_Pistol', ejectSound = 'stormy9mmClipEject', insertSound = 'LoadMagazine_Pistol', rackSound = 'PistolSlide', containsClip = 1, maxCapacity = 15, reloadTime = 10, rackTime = 10, clipData = RBeretta9mmMag}; local RBeretta9mmMag = { type = "Beretta92FSMag", moduleName = 'NCYawMod', reloadClass = 'ISReloadableMagazine', clipType = 'Beretta92FSMag', ammoType = 'Bullets9x19mmLuger', shootSound = 'none', clickSound = nil, ejectSound = 'none', insertSound = 'LoadRoundExternalMag', rackSound = 'LoadRoundExternalMag', containsClip = 0, maxCapacity = 15, reloadTime = 15, rackTime = 10}; local RBeretta40Pistol = { type = "BerettaPx4Storm", moduleName = 'NCYawMod', reloadClass = 'ISSemiAutoWeapon', ammoType = 'BerettaPx4StormMag', clipName = 'Beretta Px4 Storm Magazine', clipIcon = 'Magazine_BerettaPx4Storm', shootSound = '40S&W', clickSound = 'DryFire_Pistol', ejectSound = 'stormy9mmClipEject', insertSound = 'LoadMagazine_Pistol', rackSound = 'PistolSlide', containsClip = 1, maxCapacity = 14, reloadTime = 10, rackTime = 10, clipData = RBeretta40Mag}; local RBeretta40Mag = { type = "BerettaPx4StormMag", moduleName = 'NCYawMod', reloadClass = 'ISReloadableMagazine', clipType = 'BerettaPx4StormMag', ammoType = 'Bullets40SW', shootSound = 'none', clickSound = nil, ejectSound = 'none', insertSound = 'LoadRoundExternalMag', rackSound = 'LoadRoundExternalMag', containsClip = 0, maxCapacity = 14, reloadTime = 14, rackTime = 10}; local RColtPistol = { type = "Colt1911", moduleName = 'NCYawMod', reloadClass = 'ISSemiAutoWeapon', ammoType = 'Colt1911Mag', clipName = 'Colt 1911 Magazine', clipIcon = 'Magazine_Colt1911', shootSound = '45ACP', clickSound = 'DryFire_Pistol', ejectSound = 'stormy9mmClipEject', insertSound = 'LoadMagazine_Pistol', rackSound = 'PistolSlide', containsClip = 1, maxCapacity = 7, reloadTime = 10, rackTime = 10, clipData = RColtMag}; local RColtMag = { type = "Colt1911Mag", moduleName = 'NCYawMod', reloadClass = 'ISReloadableMagazine', clipType = 'Colt1911Mag', ammoType = 'Bullets45ACP', shootSound = 'none', clickSound = nil, ejectSound = 'none', insertSound = 'LoadRoundExternalMag', rackSound = 'LoadRoundExternalMag', containsClip = 0, maxCapacity = 7, reloadTime = 7, rackTime = 10}; local RSwPistol = { type = "S&W686", moduleName = 'NCYawMod', reloadClass = 'ISShotgunWeapon', ammoType = 'Bullets357Magnum', rackSound = 'RevolverClose', shootSound = '357Magnum', clickSound = 'DryFire_Pistol', insertSound = 'LoadRevolver', maxCapacity = 6, reloadTime = 10, rackTime = 10}; local RRugerRifle = { type = "Ruger1022", moduleName = 'NCYawMod', reloadClass = 'ISSemiAutoWeapon', ammoType = 'Ruger1022Mag', rackSound = 'RifleSlide', clipName = 'Ruger 10-22 Magazine', clipIcon = 'Magazine_Ruger10-22', shootSound = '22LR_Rifle', shootSoundPartial = '22LR_Rifle', clickSound = 'DryFire_Rifle', ejectSound = 'stormy9mmClipEject', insertSound = 'LoadMagazine_Rifle', bulletOutSound = 'stormy9mmClipEject', containsClip = 1, maxCapacity = 10, reloadTime = 10, rackTime = 10, clipData = RRugerRifleMag}; local RRugerRifleMag = { type = "Ruger1022Mag", moduleName = 'NCYawMod', reloadClass = 'ISReloadableMagazine', clipType = 'Ruger1022Mag', ammoType = 'Bullets22LR', shootSound = 'none', clickSound = nil, ejectSound = 'none', insertSound = 'LoadRoundExternalMag', rackSound = 'LoadRoundExternalMag', containsClip = 0, maxCapacity = 10, reloadTime = 10, rackTime = 10}; local RWinchesterRifle = { type = "Winchester94", moduleName = 'NCYawMod', reloadClass = 'ISShotgunWeapon', ammoType = 'Bullets3030Win', rackSound = 'LeverAction', shootSound = '3030Win', shootSoundPartial = '3030Win', clickSound = 'DryFire_Rifle', insertSound = 'LoadRoundInternalMag', bulletOutSound = "bulletOutVarmint", maxCapacity = 6, reloadTime = 10, rackTime = 10}; local RColtRifle = { type = "ColtAR15A3", moduleName = 'NCYawMod', reloadClass = 'ISSemiAutoWeapon', ammoType = 'ColtAR15A3Mag', rackSound = 'RifleSlide', clipName = 'Colt AR15-A3 Magazine', clipIcon = 'Magazine_ColtAR15A3', shootSound = '223Rem', shootSoundPartial = '223Rem', clickSound = 'DryFire_Rifle', ejectSound = 'stormy9mmClipEject', insertSound = 'LoadMagazine_Rifle', bulletOutSound = "bulletOutVarmint", containsClip = 1, maxCapacity = 30, reloadTime = 10, rackTime = 10, clipData = RColtRifleMag}; local RColtRifleMag = { type = "ColtAR15A3Mag", moduleName = 'NCYawMod', reloadClass = 'ISReloadableMagazine', clipType = 'ColtAR15A3Mag', ammoType = 'Bullets223Rem', shootSound = 'none', clickSound = nil, ejectSound = 'none', insertSound = 'LoadRoundExternalMag', rackSound = 'LoadRoundExternalMag', containsClip = 0, maxCapacity = 30, reloadTime = 30, rackTime = 10}; local RRemingtonRifle = { type = "Remington700SPS", moduleName = 'NCYawMod', reloadClass = 'ISShotgunWeapon', ammoType = 'Bullets308Win', rackSound = 'BoltAction', shootSound = '308Win', shootSoundPartial = '308Win', clickSound = 'DryFire_Rifle', insertSound = 'LoadRoundInternalMag', bulletOutSound = "bulletOutVarmint", maxCapacity = 5, reloadTime = 10, rackTime = 10}; local RSKSRifle = { type = "SKS45", moduleName = 'NCYawMod', reloadClass = 'ISSemiAutoWeapon', ammoType = 'SKS45Mag', clipName = 'SKS-45 Stripper Clip', clipIcon = 'Magazine_SKS-45', rackSound = 'RifleSlide', shootSound = '762x39mmM43', shootSoundPartial = '762x39mmM43', clickSound = 'DryFire_Rifle', ejectSound = 'stormy9mmClipEject', insertSound = 'StripperClip', bulletOutSound = "bulletOutVarmint", containsClip = 1, maxCapacity = 10, reloadTime = 10, rackTime = 10, clipData = RSKSMag}; local RSKSMag = { type = "SKS45Mag", moduleName = 'NCYawMod', reloadClass = 'ISReloadableMagazine', clipType = 'SKS45Mag', ammoType = 'Bullets762x39mm', shootSound = 'none', clickSound = nil, ejectSound = 'none', insertSound = 'stormyRevolverInsertRound', rackSound = 'stormyRevolverInsertRound', containsClip = 0, maxCapacity = 10, reloadTime = 10, rackTime = 10}; local RMossbergShotgun = { type = "Mossberg500AT", moduleName = 'NCYawMod', reloadClass = 'ISShotgunWeapon', ammoType = 'Shells12Ga', rackSound = 'ShotgunPump', shootSound = '12ga', shootSoundPartial = '12ga', clickSound = 'DryFire_Rifle', insertSound = 'ShotgunLoad', bulletOutSound = 'ShotgunPump', maxCapacity = 6, reloadTime = 10, rackTime = 10}; local RSawedOffMossbergShotgun = { type = "SawedOffMossberg500AT", moduleName = 'NCYawMod', reloadClass = 'ISShotgunWeapon', ammoType = 'Shells12Ga', rackSound = 'ShotgunPump', shootSound = '12ga', shootSoundPartial = '12ga', clickSound = 'DryFire_Rifle', insertSound = 'ShotgunLoad', maxCapacity = 6, reloadTime = 10, rackTime = 10}; local RHkSMG = { type = "HKMP5A3", moduleName = 'NCYawMod', --reloadClass = 'ISAutomaticWeapon', --broken reloadClass = 'ISSemiAutoWeapon', ammoType = 'HKMP5A3Mag', rackSound = 'RifleSlide', clipName = 'HK MP5A3 Magazine', clipIcon = 'Magazine_HKMP5A3', shootSound = '9x19mmLuger_SMG', shootSoundPartial = '9x19mmLuger_SMG', clickSound = 'DryFire_Rifle', ejectSound = 'stormy9mmClipEject', insertSound = 'LoadMagazine_Rifle', bulletOutSound = "bulletOutVarmint", containsClip = 1, maxCapacity = 30, reloadTime = 10, rackTime = 10, clipData = RHkSmgMag}; local RHkSmgMag = { type = "HKMP5A3Mag", moduleName = 'NCYawMod', reloadClass = 'ISReloadableMagazine', clipType = 'HKMP5A3Mag', ammoType = 'Bullets9x19mmLuger', shootSound = 'none', clickSound = nil, ejectSound = 'none', insertSound = 'LoadRoundExternalMag', rackSound = 'LoadRoundExternalMag', containsClip = 0, maxCapacity = 30, reloadTime = 30, rackTime = 10}; --/** ==================================================**/----/** ReloadUtil **/----/** ==================================================**/-- ReloadUtil:addMagazineType(RRugerPistolMag)ReloadUtil:addMagazineType(RBeretta9mmMag)ReloadUtil:addMagazineType(RBeretta40Mag)ReloadUtil:addMagazineType(RColtMag)ReloadUtil:addMagazineType(RRugerRifleMag)ReloadUtil:addMagazineType(RColtRifleMag)ReloadUtil:addMagazineType(RSKSMag)ReloadUtil:addMagazineType(RHkSmgMag)ReloadUtil:addWeaponType(RRugerPistol)ReloadUtil:addWeaponType(RBeretta9mmPistol)ReloadUtil:addWeaponType(RBeretta40Pistol)ReloadUtil:addWeaponType(RColtPistol)ReloadUtil:addWeaponType(RSwPistol)ReloadUtil:addWeaponType(RRugerRifle)ReloadUtil:addWeaponType(RWinchesterRifle)ReloadUtil:addWeaponType(RColtRifle)ReloadUtil:addWeaponType(RRemingtonRifle)ReloadUtil:addWeaponType(RSKSRifle)ReloadUtil:addWeaponType(RMossbergShotgun)ReloadUtil:addWeaponType(RSawedOffMossbergShotgun)ReloadUtil:addWeaponType(RHkSMG)OR get the file on my dropbox, and simply delete ISReloadUtil and put NCYawModReload in its place. Can't wait to use these on my server! Woo! Hope I was able to help bro. After a bunch of tests it seems everything is working correctly. https://www.dropbox.com/s/rabzobf0pt8oxue/NCYawModReload%20Fix.zip?dl=0 Vital
  4. Thanks buddy!! haha. Maybe I will get this figured out before then and save you some time. If not, I look forward to the update!
  5. I have been toying around with some of the code trying to find a fix. I have no experience modding on here but I have spent a fair amount of time writing and reading code. Let's see if I can throw something together, cause I really want to use this mod. I guess I could just break and use another weapon/bag mod, but Antize adds a bit too much for my liking, and the others don't add enough. Meh! Hope all is well NCrawler, missing you brah! lol. EDIT: I compared some of the files with the Antize files, which work, the lua files under the respective shared/reloading directories are formatted very differently. Other than that everything else looks pretty uniform and I can't figure out what the problem is... this mod is using a functiono called ISReloadUtil that I don't see in Antize. Maybe it is connected to that? I am going to fool around with the code some more. EDIT: After renaming ISReloadUtil.lua to NCYawModReload.lua and changing the formatting to fit a working mods reload file, I have been able to get the weapons to respond to a right-click as well as shoot. Now they just won't reload. They have infinite ammo. haha. EDIT: Still no luck. I can actually get the weapons firing and the right click menu working just by changing that ISReloadUtil filename to NCYawModReload. I imagine there is some conflict with the fact that you switched the weapons out with the old ones. Gonna keep plugging away for a bit.
  6. I can get the weapons equipped by using the 2 hotkey, but I can't reload the guns... Man this is rough, I really wanted to try it on my private server! Guess I'll have to wait a while for the fix... If anyone finds a simple one until then, please let me know!
  7. I also wish this mod worked. Would make things more interesting and allow a safer alternative to break into places.
×
×
  • Create New...