#mod_development
1 messages ยท Page 401 of 1
that should wipe everything leaving the safehouse alone
failing that, you can do a soft reset, but if i recall that will wipe safehouse loot
idr the command line switch for that though...it been ages since i used it
y'know I wish zomboid had elevation
Cant due to engine limitations
yeah I know, just wish it was a thing
There has been a new Mod Published!
Can any of the modders recommend tools for better understanding the modding system and some reference sheets? Some tutorials I am following and some of the sites they reference arent working.
Already found this one https://theindiestone.com/zomboidjavadocs/
There has been a new Mod Published!
uh.....
that mod name is entirely deceptive...0 weight for wood
should at least give you a free plank every morning
sorry, but wasn't able to look in here for the last couple of days
any new knowledge regarding modding trunk capacity?
I haven't tried that
Pls modders, make a RV!
^that would be very cool
I could use some ideas for vehicle loot themes
guns
more guns
lots of guns
enough guns to start a small war
food
need more annotated maps in glovebox, i dont think i seen a single one spawn there yet
edit orgm settings...gun spawn multiplier = 20, ammo spawn multiplier = 20...should be enough to start a few wars ๐
@quasi geode any thoughts on expanding orgm to have flame throwers and shiz? ๐
.......and why cant i use empty bottle + duct tape + cotton to craft a minimal usage silencer? ๐
thats not happening, flame throwers and other weapons like that...thats a whole other mod
or newspaper
i'd rather orgm does one thing, and does it well, then become a weaponized version of HC doing piles of different things and not particularly well lol
eh....that seems like itd fit right with orgm, different quality of silencer, manufactured vs makeshift
and multiple mag sizes for some guns heh
.......ya know i never seen a cannon for pz......
Police cars spawn a lot of guns. There are specific tables for food already, groceries and survivalist with a lot of canned food
i was refering more to the 'flame thrower and shiz'
multi sized mags are on the todo list...so are actual suppressors once i revamp the attachment system
I've added a baseball table, much like the existing golf table, a looter table, with crowbar and stolen jewelry and electronics
and a dead family table, with corpses and stuff
I'm planning a "dog owner" table with chew toy, dog food, leash and so on
cat owner ๐ though not sure if cat toy was HC
cat toys are vanilla
yeah
๐
i found one in a glovebox lol
farmer?
in a cop car too i think
handyman table
there are several profession tables and I'm trying to include things that make sense
construction?
for example camping tent stuff for ranger
there is a construction table, in my building time mod I'll add bricks and concrete to that one
firemen - havent seen that yet but someone mentioned a fire dep vehicle
there's a fireman table, but it isnt very interesting
it has garden watering cans in it lol
@quasi geode Minigun soon? c:
should have an axe, extinguishers, fire suit, hose, but i know a bit of that was HC XD
C:
doubtful XD
:C
It has axes, i'll check if it has fire extinguishers
Question. 3D models are created on Blender by using Jab's 3D model scripts?
ya
Is the only way?
dont know of any other pz import/export plugins
well you can model in anything, export to blender
then export script to pz
(assuming your issue is the modeler app not the plugin)
It could be possible to make custom vehicles?
someone said cant load new models for vehicles, only retexture, forgot who
i want tanker truck heh
I remember a thread where a guy was showing some kind of custom police car model.
And a Thurstoid where they were showing a guy's custom RV.
think that was just rretexture, theres a mod for that sort of thing
(the cop car)
i want a lift kit for vehicles ๐
i want a towing kit ๐
Deputy made those police car retextures.
I think he was.
Wait
Theres is a small confusion.
No, it's made by someone else xd
if we can tow trailers, then could replace car model with horses, trailer with wagon, for days gas runs out
Horses would imply custom animations, wich isn't possible right now.
thats all good until the horses panic from seeing a horde lol
Wasn't there a possibilty of making custom animations with Jab's 3D scripts?
even non animated, better than nothin ๐
Like in The Walking Dead Season 1
@quasi geode WANT
Rick's horse gets eaten alive by the zombies.
poor horsey
:c
Zombie horses? ๐ค
i'll stick to my truck...the zombies cant eat that
I will try to hack a meat/icecream truck skin that actually freezes food
Yeah
no icecream trucks unless it has music that plays when you drive and pulls every zombie within a 200 tile radius ๐
I started checking vehicle files yesterday, so I have a lot to learn and try
dont need coding, just a new 'siren' sound
i must be bored, keep flinging gnomes with google new game
Ok, I created a new van variation and tested it with necroforge. Now I need to know how to make it spawn in the world
Well, that was fast.
@pine vigil Any help from above?
Sorry bud, don't know. Can't check right now either.
And another variation
finally!
herse !
There are some texture shenanigans I still have to learn and fix
that was soooo missing and needed to be included
coffin item with body inside?
good for cleaning up corpses ?
@inland gull How can we add a vehicle variation to parking lots?
@nimble spoke currently it's hard-coded in Java but i'll bring it over to lua
Thank you!
Hearses parked outside of cemeteries and churches, ambulances outside of hospitals, police cars outside of police stations...
mwahaha....so i just added a few vehicle context menus for our server mod...Pimp My Ride: full repair, 600hp, 100 engine quality...shame cant seem to change the colors via lua
that ones for admins
and...if the vehicle has the isGoodCar set to true, and the player has the key, you can enable/disable the alarm ๐
hehe, the game has admin stuff built in for cars
but nowhere near as much as you have
ya i know it does...it has the repair and stuff for admins, but no way to actually boost the engine
touche
i'm going to finish the pimp my ride command to auto swap out all the part to performance as well
really wanted it to beable to change the paint but meh...guess i'll have to live with it for now
have they fixed the HP showing in the tooltip ?
pretty sure a dodge dart doesnt have 2000 hp
oh...no they divided the display number by 10
ah haha
so if the engine force is 2000, it shows as 200
necroforge changes colors, you might want to take a look
it changes skins for special vehicles, not colors though
i've gone through the java code for the vehicles...the method that randomly selects a color is private, the actual fields for the colors in the class are public, but its going to take some more workaround to change them...kahlua doesnt like editing java class fields via lua
where are the colors for special variations defined? I need to make the hearse always black, because ehrn I damage it the effects are still based on the original color
Experimenting with details to make it look more like a hearse
uh BaseVehicle.doVehicleColor(), i'm not quite sure how the damage will effect it though, you'll probably need to mess with the damage overlay textures, or possibly add a forcedHue, forcedSat, forcedVal to the car's script, since doVehicleColor() will override its color choices if those are set
I know the variations have a way to use a specific color, not sure if through the textures or code. I looked into each variation in the TXT files but found nothing
off-topic but.... there's a fucking motorcycle entry in those files
niiiiice
try forcedColor=0.1, 0.1 ,0.1 in the script .txt
it doesnt look like 0, 0, 0 for pure black will be valid...theres a bit of code i noticed where it looks if all 3 are zero (ie: not set)
ok, I'll try that. Even though I'm not sure I'll be able to test it right now, because necroforge changes a car into another, and the original color is kept
ya NF's handling of the vehicles isnt particularly good atm...but its been a while since he's had time to update it
You can see in my last pic the hood is damaged and the car color is white
its the primer under the paint job ๐
primer can be red too ๐
I need to improve the trunk door, I just don't know exactly how
nice Hearse
some pz methods being private > can access java stuff? > java has reflection? > relection accesses private? ๐
hehe
you did MC modding ?
technically no.....almost nobody modded MC, they (and me) modded forge ๐
i'm not a java coder...i can read it but i wouldnt really attempt to write in it
i certainly did ๐
but can pz mods call java stuff?
(considering i helped make MCP)
which is now fused with forge, but lex still left my name in the credits
sure...the lua side of pz is constantly passing data back and forth...java calling lua methods...lua calling java methods etc
not everything is accessable via the lua modding side, but a good chunk of things are exposed
so.....then it could be possible for mods to call java reflection, bypass private, and do things? ๐
โค reflection
reflection is great, just be careful with it !
i baely used it in java, mostly c# hehe
as long as you know how badly things can go with it. you should be fine
@cloud bridge pfffffft what could possibly go wrong ๐
the lua/java mixing is pretty funky
๐
interesting
I'm here thinking if that remove rust option could be acessible to players somehow
rust eze?
ya with a sander, bondo and paint lol
and you decided it was worth adding rust lol
hell ya..sleeper cars...some beat up POS with 600hp? damn straight lol
i'm not liking the part install/uninstall functions though...doesnt seem like theres a clean way to do it without having a IsoPlayer without lvl 10 mechanics..but i might be missing something
vehicle:setRust(float value)
these are kinda funky though, have to set the values on the clients and the server..i'm using the context menus to sendClientCommand with new values, then having the server sendServerCommand to update all the clients
was the only way i could make the alarms and engines changes really stick...just calling it on the server doesnt update the clients knowlage
THAT is something I wish I knew a lot more about
I noticed in an early version of my mod that I could remove items from containers (corpses) but it wouldn't actually show as missing until the server restarted.
SIngleplayer did not have this problem.
That sounds like it may be related to the same issue.
(I was trying to remove shoes and if I took them item off the body, it would quickly disappear from the player.)
theres really not a hell of a lot to it
nice
@proud spruce heres a really basic example of what its doing.....so the client side context menu for enabling/disabling the alarm calls this function:
local function setAlarmState(worldobjects, vehicle, playerObj, value) if isClient() then sendClientCommand(playerObj, "pimpmyride", "setAlarmState", { vehicle = vehicle:getId(), alarm = value }) else vehicle:setAlarmed(value) end end
so if its in MP (isClient() returns true), it calls sendClientCommand(IsoPlayer, moduleName, commandName, argTable)
for server side:
``local Commands = {
setAlarmState = function(player, args)
local vehicle = getVehicleById(args.vehicle)
vehicle:setAlarmed(args.alarm)
sendServerCommand('pimpmyride', 'updateVehicleAlarmState', args)
end,
--- other functions go in here....
}
Events.OnClientCommand.Add(function(module, command, player, args)
if module == 'pimpmyride' and Commands[command] then
Commands[command](player, args or {})
end
end)
``
so OnClientCommand it runs that Commands["setAlarmState"] function...which then does a sendServerCommand() to update all the clients
the clientside OnServerCommand setup is basically similar
Interesting!
I have a bunch of debugging and testing I need to do, so I'm gonna tinker around with this and see if I can understand it. Thank you.
np
so you actually go testing these things in MP first?
i did quick tests in sp first actually, make sure the functions work as intended, then ported it to mp for further testing
ohhh ok
I'm getting tired of all these purses and footballs in trunks, testing these loot changes kinda suck
after several runs through parking lots it really seems that mail vans are bugged and never spawn anything in their trunks
and I still havent found some of my new loot categories
Now none of them are spawning because it says I didn't close a { with a } that is totally there, what the fuck?
๐
gremlins slowing me down
they'll do that lol
SeatRearLeft = VehicleDistributions.Seat; for some reason the game wants to close the table in this line, but the table is closed 2 lines after this one
LOL, so I moved the line inside that table, which should affect absolutely nothing, now another table has the same issue
it was all copied from the game files with the item names changed, and today it decides to give me an error, go figure
prolly an extra ; or some crap ๐
no point adding ; in lua, it doesnt really use them
moved all item tables out of loot themes like some of the trunk tables are, no more of that bullshit
I think I'll add pet shop vans
simple texture change with specific loot table
@nimble spoke spiffos van? pizza? those food trucks at construction sites?
not too many food items for food trucks though unless HC
maybe hot dogs
you can find spiffo vans alreay
ah k
I may add pizza vans
Yes pls
still, construction site food trucks ๐
construction sites are kinda empty ish, and IRL they always have em
would require sound files be found for that
they aren't form what I've seen, every variation has a sound for horns
still the biggest trouble is freezing items in the trunk
@nimble spoke maybe see how HC makes ice chest be a fridge, and add the same effect to van?
I didn't know HC had those. I'll check the code
ice chest / cooler, somewhere about there, 2 items do it
i'm pretty sure the HC ones dont work properly
now I need that pizza whirled logo to create the van
and maybe the others like zippe market too
nothing like some photoshop skillz
Is that the menu sprite?
menu sprite?
The Pizza menu
Tile or whatever you call it.
The simple order menu like in much restaurants.
๐
pizza
@nimble spoke move logo forward more, and that light pink background looks a bit weird maybe use the van color? eh....van color to white maybe......just thoughts ๐
ohhhh it no longer looks like that. the pink square is an artifact caused by transparency issues, and the van was red because it doesn't have a fixed color
god I want to record me doing some tokyo drifting around the map
look what I just found in the texture folder
UPZ lol
@quasi geode Do you happen to know where I set the car wireframe for the mechanics panel? It shows nothing for my variations
crap i think i spotted it somewhere but i dont recall now
@nimble spoke what do you mean by wireframe?
the side image in the mechanics window
Yeah, like in that picture, when I add a new variation it shows nothing where the car should be
gotta set that in the files, adding all the little bits of what the car has
can prolly copy majority of whats in other cars, to be identical
I just need to know where those are defined for each car variation
I think I found it
In case anyone wants to know, they are defined in ISCarMechanicsOverlay.lua
Almost there
Nice!
I think the top half will look better in white
Custom stackable object? Or crate replacement?
a nice military serplus store
Custom stackable object
Neat!
very nice
Only spawn on military complex map in the next update! :p
until a real military base location is implemented in the vanilla
very nice
ammo boxes look amazing
well if you plan to make maps, you can make it dependent of custom map bridge, i can share to you the tilesheets to adding on your buildings... CustomMapBridge job it's load the custom tiles and properties. Only you need the custom tilesheet to make it work on your map
adds some gun racks to hold you guns into place to make you room look like a secret gun room from a movie
sadly no map making plans for me in the near future...too many other things to do
i want ot add mounted machine gun, you will can take it and use has normal weapons.
You know... you may need army vehicles to go with that
i bet we could get a mounted machinegun to actually fire
lol!! can be amazing!
i can already see a good chunk of the code in my head
Which of the existing cars would be the best option? jeep? pickup?
hard part might be keeping the IsoPlayer facing the general direction the gun is pointed in...sure theres probably a way of hacking that in there though
Just wanted to point out that the new ISCollapsableWindow:titleBarHeight() function errors out if there's no title. Works fine on the public branch where it uses a flat value of 16, doesn't work on the IWBUMS patch where it uses return math.max(16, self.titleFontHgt + 1) and attempts to derive the value from the nonexistent title.
Humvee for that large machine gun or the back of a pickup truck
I can't make a humvee. I wish we had trucks already
Bleh, these artifacts are annoying, I'll need the base texture but I can't find one for this type
well, the pickup might work as a utility vehicle, something that would be used to transport small stuff around the base
stepvan is also a good moble storage
Dumb question but I want to get it out of the way before I go nuts: is there any way at all to access public classes that haven't been exposed through LuaManager's exposer
I'm just trying to get a list of files in a directory so I can make a fancy little UI for file selection, but for some reason java.io's File class isn't exposed and file buffers are used for everything else.
if its not exposed then nope
Well shit.
io wouldnt be exposed because they've set it up so mods can only read and write to specific directories...reduces the chance of malicious mods
Are there any functions whatsoever related to directories & their contents?
some of io is exposed, but dont think anything to actually parse a directories contents
i might be wrong on that though, i'm not a java coder by default and havent worked my way though every exposed class and function
From what I can tell from my spelunking, the lua-exposed I/O use File objects but then pass them through BufferedReader/BufferedWriter. I've tried reflection, don't know enough about Java to actually make use of it.
Guess there just isn't a directory parser function yet, oh well.
Im trying to install Le Gourmet Evolution but i have never worked with mods that are not on Workshop. What is the folder structure for getting these types of mods installed on a server?
Is super survivors now working with public build or do i have to use IWBUMS?
Should work with public now
Ok I'll test it later when i get my new router
Lightning struck close to my house and fried my old router
new test
would be really nice with a beige canvas over the back too. not sure if thats possible tho
I'm checking the base models to see what I can do, how well they-d look with textures that are very different from the existing ones. I may be able to do that
yeah, it would be pretty cool, especially if the back section of the jeeps could be changed like that
I will resume work on the jeep if I find the base texture for it. Working with transparency is a mess right now as you can see in that pic
For now I'll try other base models
cool, keep up the nice work
Trying to set it apart from standard pickups
I think I added all missing car variants to necroforge here, in case anyone wants the updated file
be nice if he had a chance to update NF, but i know he's going through some RL crap lately and hasnt had time for that sort of stuff
i gave him a nice snippet of code a while back to pull every single item from every mod loaded so NF's lists will automatically update and be compatable with every mod...no more updating NF's lists when mods release new versions...too bad he never got the change to implment it
There has been a new Mod Published!
The Dash fits alot.
ya those look awesome
There has been a new Mod Published!
Thanks guys, I'm trying to get these finished so I have at least 5 new car variations to upload a mod. After RJ's changes to the vehicle spawn system of course
So hearse, pizza van, 2 army variations, UPZ van doesn't really count because I didn't create it, so I'll try to add one more
Can someone give me a list of the most fun mods?
thats entirely relative
depends on what kind of fun you're looking for
the most common mods are ORGM, hydrocraft, super survivors, i think
so if most common = fun ๐
see entirely relative...hydro is popular as hell, but a equal number of people think its just too much clutter....ofc I only have good things to say about orgm, but for some unknown reason some people just dont like playing with it...as for those survivors...well...i just dont trust them....not since they disappeared with my bags on guns i left on the floor!
๐
bloody thieves...thats what i get for taking them into my house
๐
Chain em up and use them as slave labor
having my arsenal stolen by 2 women i saved from certain death and brought back to my harem (err...i mean 'safehouse') although is a interesting dynamic...definatly does not count as fun ๐ค
Harem lul
maybe...idk i didnt ask...its my game damnit not theirs ๐
thats ok i learned my lesson...no more survivors, now i just shoot on sight, or let the z's get them lol
those women came into my house and broke my heart ๐
i really loved those guns ๐
they cant bypass locks
i just lock up mah shiz ๐
<que racist comment related to slavery and not letting the slaves into the armory>
ya like i said i just shoot on sight now...apparently they cant bypass bullets either ๐
Murderer
its for their own good, i'm just saving them from turning into a zombie once they get bit ๐
dont think of it as murder...its "preemptive euthanasia"
one of these days I'll start a survivors game with no zombies and just shoot everybody
@rocky lynx Una pregunta. Si uso el Project Farmoid junto con el LeGourmetEvolutionPlus en su รบltima versiรณn. ยฟHabrรญa un tipo de incompatibilidad o error grave al iniciar una partida con ambos mods?
@drifting ore si entras al blog y lees la descripciรณn veras que mods son incompatibles.
addvehicle <script> <player|location>
Thank you!
@quasi geode will it spawn items from the vehicle's spawn table?
ya it should...least if i recall right going through the code
sry i probably should have mentioned that one the other day lol
yeah lol
i been reading alot of the java for the vehicles...most of it just gets stashed in my subconsious lol
kinda quickly skimming over following the logic...doesnt really stay on the front of my brain until someone pulls it out XD
I understand, do you remember where that one came from? I'd like to take a look
uh the actual command, i dont recall where it defined, but it creates a new BaseVehicle.class object, then calls v.addToWorld()....i believe its in the BaseVehicle.addToWorld() method that the loot gets spawned
if i'm remembering right...dont have JD-GUI open atm
i was trying to see if i could create a new BaseVehicle in lua, and simulate the rest of the /addvehicle command entirely in lua but theres a point it sets the BaseVehicle.chunk field...which cant be done lua side
cant recall now why i was trying such things in the first place LOL must have had a reason though XD
You know if there are any mods adding music and playable elements?
debug mode? its one of the startup arguments...so in the .bat file or .json files
-dDebug or -Ddebug...idr which (case matters)
Ok, debug mode on, what exactly do I need to type
uh for what? tbh i rarely use the debug mode...like hardly ever lol
the addvehicle command
oh...it a MP command, theres probably a way of manually executing lua via debug mode but i couldnt say offhand how
i really dont use the debug, if i'm resorting to debug mode then i've completely broken something...in a massive way lol
I got it all wrong then, I thought it was meant to be used in debug mode
naw..though i'm pretty sure theres a lua exposed addVehicle() function
which can probably be triggered via debug mode but i really havent played around with it enough to know how to manually exec functions
@quasi geode your story about being robbed gave me a good mod idea. tracking device. attach it to an item, and with some sort of paired monitor device. you can always check the coordinates / last known coordinates of item it was attached to.
had you put one on one of the guns in your stash. you could now be going to track them down and get your revenge.
reaaly nice work @nimble spoke, love the canvas and the dirt on that pickup
@placid delta eh....i dunno about on guns, i mean i like the concept, just having a gps tag or rfid tag hanging off side youd see and cut off ๐
@quasi geode that said, what about gun handles with biometrics so only owner can fire them? ๐
might confuse super survivors code trying to equip em though ;s
be nice for pvp if ORGM has it ๐
smart guns werent really around back then...hell they still pretty much arent...though trigger and bolt locks should definatly be a thing lol
yeah I doubt they had smart guns in the 90's
there was concepts for them...but they didnt take off..people and manufacturers we'rent overly interested in adding features that could potentially break during a life and death situation
yeah, like i was thinking, ideas for stuff must have been around
but stuff like small chips etc. that detect the owner, wouldn't be a thing
there was all sorts of concepts..magnetic rings that could be worn that moved a internal safety out of the way etc
i remember some of the early attempts but ya...they didnt really last long
but you also have to think its rural kentucky, lotta old shotguns and rifles
doubt there would be many guns that youd find with some more advanced safety features right?
mabye police stations
but i heard about the type of handgun they carried in KY in the 90's, it was silver like the in-game model, but can't put my finger on the name..
i been trying to find a list of the official models the knox county PD had in service then but havent had much luck
half tempted to email them lol
haha
i guess its worth a shot
i think a lot carried old magnums
could be wrong tho
doubtful...early 90's probably glocks, or SIG's
but i want the full list of everything ๐
why not something a bit more rednecky? maybe a literal lock on the slide or the bolt
makes sense
Fenris_Wolf - Today at 7:48 AM smart guns werent really around back then...hell they still pretty much arent...though trigger and bolt locks should definatly be a thing lol
i doubt consumer-grade weaponry would have smart locks and whatnot, but Jimmy Bob might not have any qualms with adding one
@quasi geode my bad
'The Knoxville Police Department will begin a transition from a .40-caliber Glock to a .45-caliber Sig Sauer handgun after City Council approved the switch Tuesday night.' this was 2013, so ill take this on a whim and say that they had most likely been using the .40 glock
nope
๐ฆ
wish we could
honestly duel weilding pistols is more vid game/hollywoodish then actually practical...unless your just trying to spray a area with bullets and not caring about accuracy...you can still be accuracte but it requires alot of concentration and slower fire shifting from the left to right
either way your better off just using a single pistol, you'll get more shots off faster, and be more accurate
.500 magnum revovlers ๐
pew pew pew
seen some old vids ages back of clint smith (thunder ranch training academy) doing old western shows, dual weilding colt SAA's..1 handed reloading off the belt while blasting away with the second revovler
but if you tried dual weilding during the tactical training courses he'd probably toss you off the range lol
ah its not even the recoil factor...your brain just ends up concentrating on shifting aiming from the left to right, your going to totally blow any situtational awareness...i'm sure it works fine on a single target at point blank ranges though lol
true
but you'd still be better off just working the one trigger then trying to concentrate on toggling the left/right triggers
yeah
This is eating away my patience. One line is perfect the other has an error, except they are the same shit
a series of similar lines and only the first works
if I comment the second then the error appears in the third line.... and so on to the last one
that usually says theres an error on the above lines
lose the ; inside those tables
thank, these , ; : can all go to hell
ya...should get in the habit of writing lua without ;
alot of other languages use them but in lua its considered bad practice
it didnt look off to me as i never used LUA very much and i know java
so ; ; ; ; ;;; ;; ;
it doesnt need them for line endings, the only time ; is used is when added multiple lines of code on the same line...which is generally considered bad practice in all languages
so really theres no valid reason for including ; in lua
yep lol
hahah
you can use it for line endings...lua silently ignores it...but not in the middle of a table like the above problem
that would have been expecting a ,
hence the unexpected
ok, I'm positive I already copied it like that though
I'll keep in mind to do my part in killing all ;
looks like the base game file does it too
PickUpVanMccoy = { Normal = VehicleDistributions.McCoy; }, PickUpTruckMccoy = { Normal = VehicleDistributions.McCoy; },
looks like that file does it in alot of places
O_o
``VehicleDistributions.Fire = {
TruckBed = VehicleDistributions.FireTruckBed;
TruckBedOpen = VehicleDistributions.FireTruckBed;
GloveBox = VehicleDistributions.GloveBox;
SeatRearLeft = VehicleDistributions.Seat;
SeatRearRight = VehicleDistributions.Seat;
}
``
das bad mkay
``Lua 5.2.4 Copyright (C) 1994-2015 Lua.org, PUC-Rio
x={'y'=1;'z'=2}
stdin:1: '}' expected near '='
``
> x={'y'=1,'z'=2;} stdin:1: '}' expected near '='
opps my bad...that should have been ['y'] and ['z']
huh...oddly enough it seems to work
``> x={['y']=1;z=2;}
print(x.y, x.z)
1 2
``
well then... o.O
Nice job Snake, I'd tune down the red though, it looks like fresh blood around a rotten carcass
oh duh there it is... hidden away in the lua syntax for tables fieldsep ::= โ,โ | โ;โ
they hid it in there to slow me down
well just be glad they did the modding component in lua...and not perl lol
perl = we'd only have a handful of modders...nobody would beable to read anyone elses work.....but the few mods we had would be awesome ๐
lol
plzno
or malboldge ๐
lol, grass XD
I still get the error after remvoving ;
poor moose
ah if you send me the file i'll take a look
does lua have a proper IDE ?
or do you have to use something like: http://rextester.com/l/lua_online_compiler ?
Here, have fun
theres a few
LUAStorm? ๐
line 343
i use ZeroBrane...but generally not for PZ modding, more serious stuff
neat
what line # is tossing the error?
oh...no
--New Car Types -- Hearse --CarHearse = { Normal = VehicleDistributions.Hearse }, -- Fossoil PickUpVanLights1 = { Normal = VehicleDistributions.Fossoil }, PickUpTruckLights1 = { Normal = VehicleDistributions.Fossoil }, VanSpecial0 = { Normal = VehicleDistributions.Fossoil; }, --McCoy VanSpecial1 = { Normal = VehicleDistributions.McCoy }, -- Meat Van StepVanMeat = { Normal = VehicleDistributions.Meat }, --Van Pizza VanPizza = { Normal = VehicleDistributions.Pizza }, --Van Postal VanSpecial2 = { Normal = VehicleDistributions.Postal },
are those all supposed to be in 1 table?
--
theres no start or end, so they're defined as global variables
is that comments in LUA ?
which means it is the , at the end of the line
they're supposed to go in VehicleDistributions [1]
ya...they arent
your inserting them after using table.insert
but you've got them defined as global variables above that
Ok, so it is me doing it all wrong then
1 sec i'll redo it
drop the table.insert lines at the bottom..and just do that whole section like:
VehicleDistributions[1].PickUpVanLights1 = { Normal = VehicleDistributions.Fossoil } VehicleDistributions[1].PickUpTruckLights1 = { Normal = VehicleDistributions.Fossoil } VehicleDistributions[1].VanSpecial0 = { Normal = VehicleDistributions.Fossoil } --McCoy VehicleDistributions[1].VanSpecial1 = { Normal = VehicleDistributions.McCoy } -- Meat Van VehicleDistributions[1].StepVanMeat = { Normal = VehicleDistributions.Meat } --Van Pizza VehicleDistributions[1].VanPizza = { Normal = VehicleDistributions.Pizza } --Van Postal VehicleDistributions[1].VanSpecial2 = { Normal = VehicleDistributions.Postal }
K, thank you
I did not find the car types I expected to be there. ๐
ya i was dissapointed nolan is only selling old beaters lol
"Gently Usedโข"
i should go necroforge redesign that place on my server...stick a pile of fully repaired sports cars and suv's in the lot, lock them all up with alarms, NF barricade the windows and doors like the gun shops, put all the keys inside with a horde of 200 zombies ๐
lol
I was thinking there could be at least one car variation inspired by his mod's cars
lol
that tank was my 'farm truck' lol...go get the wood..pile it all in the back and drive it to the base
I don't think I played with the mod more than testing it one time
hey! whats with this comment in Vehicles.lua
-- having no engine door or in bad condition will make the engine goes in high Tยฐ
thats a cheap work around for lowering engine condition when theres no hood
without a hood technically you'd go down in temp ๐
yeah, but considerably less aerodynamic
oh for sure
i was looking at the vehicle update functions...i'm reworking that cheap 'Pimp My Ride' mod i did up so its more useful...checking engine fluids, replacing sparkplugs and such ๐
that's great, Do you think I can use update to freeze items in the trunk? I want that icecream van
I'll try to make it consume battery faster
dont see why not..if theres a lua = { update = someFunction } in the script .txt files for the part
in the java when the BaseVehicle.update() method is called it goes through all the parts and calls any lua update functions attached
looking through the code should beable to override the update functions as well via lua instead of modifying the txt's
havent tested yet but i will lol
Good, let me know of your results, maybe we can come up with crazy new ideas for cars
will do...going to be a bit before going into the testing phase again...still browsing code seeing whats possible and making ideas
i've set aside a few functions for increasing/decreasing things like engine noise/power/quality/max speed by absolute or relative values
nice, high'skill mechanics should be able to tweak those
going to add some rad fluid, oil levels, brake fluid stuff into the code...can tweak the breaking force too but i havent made good interface functions for that yet
maybe add them to the mechanics window?
LOL...evil idea in MP: right click car > "cut break lines"
lol
ya...i can add into the engine's right click context menu entries without having to replace the whole code section in the vanilla mechanics window files, so yay
wish you could define a custom overly texture per BaseVehicle...underneth the damage or rust textures...but not fixed to a specific script entry
interesting...engine quality effects fuel consumption...didnt notice that my first time through the code
I'm checking the template scripts, can I add part variations there?
for example can I add a third trunk type?
looks like it but i havent really dug into the templates yet
well, I guess tomorrow will be dedicated to hacking a cooling trunk
Podrรญas hacer posible tener las cabezas de los peces como trofeos de caza tambiรฉn.
how do u get a dog in hydrocraft
find a dog whistle
thanks
and read hydrocraft wiki

is it keeping items cold after reloading?
let me check
shoul be, for everything the game sees it as a fridge, that's all I did lol
No, I guess it no longer counts as powered when I move the car or something like that
Anyway, I'm on the right track, now I may fix that with the update function
ya i was wondering if the location of the car would effect the powered status
use dat alternator
No need to manually change each item's temp
YES the update fixes the issue, you start the car and food get cold!
evil laughter
\o/
Now I need to control which vehicles have it, battery usage and all the details
I'd make a full camping van if we could add models
haha would be ideal
wait, let me check something
i'd like to replace front the passenger seat in all my cars with a small beer fridge please ๐
crazy thing is.... that is possible
swapping storage types?
Do you know whatthat offset value in a vehicle's model is?
Is there a scale somewhere?
I mean, separate x, y, and z scales beyond the scale value
i'd have to check...to be honest i've mostly ignored the .txt files up to this point since they havent been relevent
ok, I'll work on filtering car type for my fridge trunk
well...i'd imagine the offset is just the positioning
the scale value is probably the only one, just a generic model scaling factor
uhhhh vehicle:getVehicleType() shoud return.... something, I'm trying to convert it to string and print but get nothing
it returns the BaseVehicle.type field, which defaults to "" (empty string)...i dont see that its actually set anywhere in the files
might just be missing it though, since getVehicleType is called in 2 places (once in java for the key spawning..but doesnt have to exist to still work), and once in the lua for setting engine quality
Yeah, scriptName is what I was looking for
@quasi geode Am I right that you have your own reload difficulty with ORGM and that the game settings don't apply?
yes and no....technically, easy mode is ignored and treated as normal
so your options in game settings are normal/hardcore
if you set it to easy it doesnt behave any different then if you set it to normal
ok, so hardcore still has it's use and for that I still need to use my mod to force that every player has the same, thanks for the fast reply
ya i was tempted to remove the normal mode too, but i get enough complaints as is lol
also thought about just building in the forced settings for servers, since its already passing all the other server settings to clients...but didnt want to ruin the point of your mod ๐
na, it's totally fine for me if you implement such a thing, I'm still hoping that TIS will add a way to sync this out of the box
really the whole server to client settings transmit i had to borrow a hint from your mod anyways using the OnTick event...since OnGameStart didnt work so well
though no luanet...that just seemed unnecessary
vehicles'parts don't update for vehicles in a parking lot, but once they acquire an "owner" they start updating. So each player has only one vehicle updating
This may be an issue for my plans, not sure
uh ya theres a point in the java where it calls the update...i'd explain it but its going to have to wait...just closed down JD-GUI...need to login to my server and take care of a few issues now lol
no problem, it is going to be a minor issue if at all. Like finding the van in a parking lot and food isn't fresh anymore when it still should
But for players having that van will still be useful
Now I have to code battery usage, maybe allowing players to turn on/off the cooling system and things like that
I would love to be able to have cars which include car phones, or something like a two way db radio
or a wine cooler ๐
/beer cooler
@nimble spoke so you are also struggling with the lasting of the freezing effect?
Olny in MP, in SP it appears to work fine
So I'll work on the details for now and worry about MP later
Yours is an item container, right?
Should I try to add a new button to the dashboard or just link the cooling effect to trunk locked/unlocked?
I think in MP a player would like to keep the trunk locked and still want to turn on/off cooling
button in dashboard is better IMHO
and yep, mine is a simple item container, but I stopped working on it for now
Fully functional, at least in SP
nice
You can leave it on when you turn off the engine but it will consume battery as fast as lightbars with sirens on
May need to be balanced later
very nice, time to stock up on alcohol for the ride
Now onto making icecream and butcher skins for the van
is PZ mod down?
water delivery truck? lol
Water delivery in 1993?
eh water delivery existed before 1993...not exactly a new thing
I mean
It's America
Unless you are referring to water bottles
Then yeah trucks do deliver those
I was thinking refridgeration would be used for ice cream trucks and whatnot, lol
hey the water deivery truck could be pretty cool...as long as i can empty it and fill it with all the orange sodas i find ๐
explicit? good thing you warned us...that icecream truck is cleary NSFW...its paintjob is all naked!
IKR, You should be banned from this server for this disgraceful Explicit art.
I guess I should have used tasteful explicit art
i still think it needs to play music as it drives lol
well, it is totally possible, I'd need the music file though
water trucks were mostly in bigger cities, delivering 5+ gallon bottles to water dispensers in offices
water dispensers are all around pz map, and the type of truck fits - but better to get giant water bottle item / be able to pull off of dispensers too
small towns too...delivering spring water..if theres a good source
well, I don't want to go on adding every single type of commercial van just for the sake of adding. special vehicles spawn rate is very low, so I'd rather just add the really interesting choices
I may try a hotdog van with working stove and small fridge
water truck is kinda common in apocalyse things though, as big asupply of water easy to raid XD
Did they fix the admin issue that you had to redo the command every time they rejoined?
and grant admin
i duno about hotdog, but the food vans around construction site ๐
hotdogs were more the corner food carts
I'm not american, I know hotdog vans are very common here, not sure about 90's kentucky
ya not here XD
food carts did various things, food trucks did the bigger / more versatile business
carts mostly hotdog, coffee, icecream, pretzel, then anything complex needing cooking like taco, fish, bbq, was trucks, but never seen hotdogs in a truck here
Ohhh so maybe a taco van?
ya
taco, some drinks
nachos
prolly burritos
as said trucks were a bit more varied, but still related food
ok, I'll think about it
pz taxis advertise a "I โค Wok n Rolls" I was thiking maybe I could add that one
heh
I have enough time to consider all these ideas until RJ moves the vehicle spawn system to lua
Lua is more easier to code?
yeah, and modding java isn't really supported
Has anyone ever saved some info server side? whether it was in some server side modData or in a file or something on the server?
cant say i've ever bothered to manually write and save to a external file server side, but i dont see any difference if its a client or server doing it....modData is definatly saved serverside for objects
im about to see if getModFileWriter will write a file server side
dont see why it wouldnt
me too, but im worried it could mess up file check sum or something by adding files there
is there way to reload lua file on server like you can client side in debug mode? or i have to restart for that?
its not likey to mess up the checksums, expecially if your not writing to a actual lua file...you can also use getFileWriter() instead
which will write to Zomboid/Lua/
cache dir for mod's to write in
which is what orgm uses for its config file
you can reload lua server side..there a admin command for reloading files "reloadlua <filename>" you could also trigger it programmically if needed but i cant recall the exact function calls atm
i type that in console but pressing enter does not send the command
i'm not sure how reloading a lua on the fly serverside will effect checksums if it not longer matches clients though..really i'd avoid using that method
im so ignorant when it comes to MP
ya cant say i've ever bothed to use it before
takes so long to restart your server to test a serverside change
It's possible to send a string from client to server right? Maybe send a string to the server that runs it via loadstring, just as a testing tool of course
sendClientCommand(), with a OnClientCommand event serverside
Neat
or reloadoptions
man i really need to install that on my server...tired of looking at deer heads all the time lol
i need to work on that orgm compatibility patch first though ๐
ZombieLootExtended is most likely it outdated and doesn't work anymore, first check the comments before installing any mods, Sleep don't work in cars anymore, and most likely storage as well. @bitter root
How do you customize the Welcoming message? what with the <LINE> when do you put it and I know RGB is color.
are you in the IWBUMS build? Because Emergency Vehicles will only work in IWBUMS build. @bitter root
sleep?
Yea
how i see wat build im on
You can sleep in cars and ZombieLoot break vehicles
do i have a sleep mod or somthing 0.0
.........
Sleep is in the game, YOU have to sleep....
How new are you?
Please read titles of the mod at least before installing them the Emergency Vehicles says in it title it IWBUMS.
i started in jasva
Right click on PZ
and go to beta and if you opt out that means your not in IWBUMS
also remove ZombieLoot since it break vehicles
Loot zeta affects vehicle trunks, seats and glove boxes?
No ZombieLootExtended
theres three betas of the 2 that dont say pre vehicles do i pick
Read the titles what do you think Pre-vehicles mean? that means when vehicles were experimental, and choose IWBUMS(Iwillbackupmysave)
um pre vehicles i excluded
k
is there a modded necroforge out there that removes multiplayer limitions of spawing vehicles?
If you want to play servers make sure you don't pick any beta;None
n is there any way to allocate more memoery to server then 2.5g my players complain bout lagg n mentioned alocating memery
Get a dedicated server or stop your server and before starting you can increase your dedicated gb to it
its on max but it needs more
Well I can go to 8gb that mean your system can't allocated more than 2.5 gb
ah dang
well if i put my system to its max 64gigs well iit let me allocate more i built my computer
right now its at 8gigs so i was expecting i could put the server to 4g atleast
That stress with cause damage to your computer in the long run it not recommended to use more that 80% in a daily basis.
Use less that 80% if you can.
wat would be less thenn 80% for 64gigs
n i cant seem to use the dedicated server ap n keep the car i used on cleint server it makes me start over
Okay, so do that.
char not car
and the only reason it let you only use 2.5 is because the system does that to allocated the 5.5 to the system it self
zombie loot gone n cars still busted for storage
is this in the server?
yes
COMMAND QUEUE stallCount = 2 peakUsage = 85248
1529199721044 18
1529199721948 18
You need to restart the server for the mod deletion to take place.
i started the server from the menu after deleteing all of zombie loot extended
so its fresh runing
ah dang:/
are any of these mods in my list cleint side only like more hair color maybie?
PZ is a eat ram like it water, the problem isn't that there players the problem starts when all the players are driving and discovering all the maps part in the same time.
well when i had the server up i was the only one on it n the trunk was broke
all java eats ram thats why i have java blocked on websites
i had MC eating up 120GB of ram on my 128GB ram PC XD
i have a workshop item i cant find on workshop :p
prolly got removed/hidden when steam put out a new upload agreement
bah i sleepy butr i dont wana sleepp till i weeded tho my mods
so are map mods not compatible with multiplayer cuz i cant get otr to show up in the spawn map for new char
anyone know the data type used to store bag size? and whats used for whatever function returns capacity?
curious the largest bag i can make lol
uh...well you dont want to go over 50 total weight...and dont forget the organized trait adds to capacity
ignore that and any uh......unintended side effects
whats the max size of bag the game will read from file, store as data type, and return when capacity function called ๐
i know 20k works
editing the file and restarting is slow though XD
hmm prolly some file size issues holding stuff that big ๐ oh well thats tomorrows worry
.> you're missing the point
if i equip bag empty, then fill, it doesnt matter what the bag will weight from then on, making a joke bag that basicly introduces unlimited inventory, 20k with 100% reduction works, will 100k? restarting now ๐
oh
๐ now you get it
well...i was just saying if you ever want to beable to put that bag on the ground lol
oh fully aware there lol
HC has wagon 'bag' that holds 500 -100% ๐
ran into that plenty
though at the time there was a way......like pz has drag to drop, a drop button, and a 3rd way, 2 of those ways didnt work, 1 did, forget which, just inconsistencies in the game ๐ prolly fixed by now
which sucked b/c i dropped it once and had to empty it to pick up ;s
Testing making new brickwalls (Carpentry 10 and some requeriments to build it)
next, animals rugs (moveable object) :p
nice...love that reloading bench btw ๐
well, i was thinking about to add another furniture for the construction mod, Electric saw table, Work with electricity and saw logs faster.
wheres that wood railing from ?
i tried to find/pickup existing but couldnt
and looks like sheetrope can go on it? o.O
@rocky lynx ^
i'm work with a new construction mod, i can build wood and metal railings, doors with glass panels, brick walls, etc
@nimble spoke since you have the fridge bits on a custom truck ๐ what about a tanker truck? big tank on back to hold gas ๐
to make a brick wall (Need gravelbag, sandbag, concretebag, water = bucket of concrete, and found some clay, make bricks with a mold, and then make a pile of claybricks, cooking it)
Result a claybrick wall-Zeds can't destroy it if you play with settings helicopter > 1 times
need to polish the art but test working!!! ๐
There has been a new Mod Published!
There has been a new Mod Published!
anybody know if the hydro update affects all dogs?
Fort Knoxxxxxxx
@earnest quartz We don't have a proper model for a tanker truck
Which mods should I keep on my server excluding the maps
Mods=Hydrocraft;ORGM;SKLDairyMod;UHB;GravelMod;ForageFix;PassiveSkillsFix;desperateCrafting;ATP;BookCollection;Crematorium;OZMeds;BedfordFalls;erie;ArmorMod;CLH_RegionalMap
toss em all, get hydrocraft and orgm ๐
If you want to make your experience realistic, I would recommend Hydrocraft, ORGM, OZ More Meds 2.0, Littering and AIZ Map Pack 2 Enchanced.
And 'Opening Cans with forks and knives' mod.
wonder if HC will add more meds o.O
i mean add the bits from the mod
not a few random bits itself
hah to find your blood type, look at console (wouldnt that exclude MP?) or use a blood test (coming soon)
hmm post apocalyptic sprites mod looks nice
it is but its not without its flaws
flaws? ๐ฆ
How many mods max?
200
I mean you would play in a server
it overwrites one of the base tiles packs, not sure if it has a effect i'm assuming it does...the overwrite was completely unnessissary...if it does have a effect, then new tiles added by the devs wont get picked up...it also doesnt seem to properly register as x2, so using scews some things...like metalwork bar windows barricades
ah heh
the textures really are cool though
How many mods would you recommend to keep?
Mods=Hydrocraft;ORGM;SKLDairyMod;UHB;GravelMod;ForageFix;PassiveSkillsFix;desperateCrafting;ATP;BookCollection;Crematorium;OZMeds;BedfordFalls;erie;ArmorMod;CLH_RegionalMap
I like the UHB and the Dairy mod but this is way to much mods.
Crematorium, Gravel Mod, Forage Fix, and Desperate Crafting.
and ORGM and Hydro and Dairy?
You can conserve those.
UHB is pointless with HC though
adds alice bags
crematorium im 50/50 on when its with HC, i mean you can turn bodies into charcoal with HC, and burn that / or use as fuel for most of the HC tech line, or saw up bodies for bone for glue which is highly used, but crematorium is a slightly faster 'just clean up' way, so
desperatecrafting kinda same route, HC covers most of whats in it, in a slightly diff way
if you want options, go for all, if you want fewer mods, read what they do, play em a bit, and remove what you feel is redundant
HC = hydrocraft
Oh, I have that.
How much does weight capacity does the ALICE bag have?
@earnest quartz
Can you recommened which mods to keep?
that question was already answered, by many peeps, and nobody is going to give you some magical perfect balance of mods, you go with the mods you like, its your server ๐
Thanks!
There has been a new Mod Published!
...
This is confusing.
He says thanks to you.
I mean...
He acts like if he/she owns that mod, but he/she says that you created it.
Maybe it's an edit?
theres a specific file in ORGM, called "Credits and Permissions.txt"...it specifically says "not to upload to the workshop without permission from both me and OrMntMan"
Time to demand?
Try to install the mod and check for the Permissions.txt if it has it.
Maybe the guy removed it or it's just a mod copy paste
i cant post there, got a GoG copy not steam...downloading it now...but the jokes going to be on him in the long run...
ORGM specifically nerf's itself if it gets uploaded without permission
guns jam like crazy, do shit damage, spawn rate nerfs etc etc
more or less, yep
technnically it doesnt modify itself (least not the files), but it knows when its the official version or not
well...at this one was nice enough to leave the credit and permissions file in (thats a first)...obviously didnt read it though lol
oh noooo
the ORGM Extreme version add a new gun ammo?
meh...he ripped out the validation code
if he went that far he obviously knew his effort would not be appreciated
PM him?
but he's also broken parts of the mod by doing so lol
LOL
What parts?
No wonder why he said it was a pain to write the code, more like rip the code amirite?
"Magazines: All guns have magazines that go with them just like the current ORGM. I'm working on extended and lower capacity magazines but its a pain to code it in."
"Sorry for no discussions (at least I cant comment on them), I got banned for writing a negative PZ review and the mods got butthurt about it. If you have any questions, please feel free to contact me directly." He put it at the bottom, ya right.
The last comment made me doubt alot.
yep not a shitload i can do about it at this point...dont have steam so cant bitch him out lol
and he also got VAC banned before and said it was not his fault and it steam
Vac
banned
lol sorry
"WARNING: AS OF THE FIRST VERSION, THE RUGER LCP AND GLOCK 43 FIRE SLOW. I FORGOT TO ADDRESS THIS ISSUE WHEN I UPLOADED THIS. IT WILL SOON BE FIXED."
LOL
@quasi geode Also what part broke?
can you talk to ORMntMan to bitch him out?
not going to ask someone else to do my dirty work lol...OR is technically retired he just handles the steam uploads for me and answers questions on the page when he has time
Oh.
So your kinda screwed..
You got to give it to him or she, he has dedication , he or she even ripped the code.
why cant you inform steam?;3
OH LMAO...he didnt rip out the validation code...he's using a old outdated version of orgm XD
just before the code went in lol
LOL
He got some sauce in his comments
I mean by sauce is drama
I can screenshot it to you.
ah no need
oh...i remember him now..he offered to help with orgm before i didnt want his drama associated with the mod..so that was basically a no
Lmao,
"Go Fuck yourself i'm going to DESTROY you in my review" LMAO
Not to mention his whole description is a literally rant against VAC.
I hate that I can't post commentaries in any PZ thread.
You don't have enough permissions for posting
Come onnnnn
Anyways, @quasi geode How to mod?
thats a pretty vague question
Recommend to just check mod files, remember their examples and start adding your simple test content.
Like a can of beans but edited and with better calories?
I mean what language, Javascript or Lua?
lua tutorials, and tutorials on the forums
There 1 tutorial and it outdated...
theres a few tutorials...and the basics are still the same
I know i've written 3 or 4 lua tutorials on the forums...not beginner stuff though
why couldnt pz use c# ๐