Temporary solution to get it to work: When you have this mod installed, paste this in console: Code: scripts_crazycontraptions_extension.rolldice()
Would you be open to someone forking the mod to make the needed update? I'm a software developer and WoW mod author so Lua isn't something new to me. If so, PM me and we can figure it out.
Still works for me and supports my trailer mod, I just got one of the coolest things ever It's very fast and looks cool
Hey guys, so I'm gonna be taking over the project from now on since @umustbeloggedintododat isn't gonna be working on it anymore and I'm not so busy now and want to fix this mod (I got his permission to do so). I'm gonna be uploading the mod as a new mod on the repo soon. A new feature I'm adding is when you scramble the parts, there won't be any incompatible parts (e.g. diesel engine will spawn with a diesel fuel tank and will not spawn with a battery or gasoline fuel tank). --- Post updated --- Alright it should be up by tomorrow: https://www.beamng.com/resources/crazy-contraptions-remastered.20226/
cool I hope the remaster will use all the slots for the parts and there will be a random color change I also improved the randomizer for myself, here is the code that I got - Code: local objID = be:getPlayerVehicleID(0) local veh = be:getObjectByID(objID) local vd = extensions.core_vehicle_manager.getVehicleData(objID) vd.config.paints = vd.config.paints or {} local index = 0 local all_slots = require('jbeam/io').getAvailableSlotMap(extensions.core_vehicle_manager.getPlayerVehicleData().ioCtx) local all_parts = require('jbeam/io').getAvailableParts(extensions.core_vehicle_manager.getPlayerVehicleData().ioCtx) for slot_name, curr_part in pairs(all_slots) do if all_slots[slot_name] then local keyset = {} for k in pairs(all_slots[slot_name]) do table.insert(keyset, k) end local random_part = all_slots[slot_name][keyset[math.random(#keyset)]] all_parts[slot_name] = random_part end end for i=1, 3 do index = index + 1 local paint = createVehiclePaint({x = math.random(0, 100) / 100, y = math.random(0, 100) / 100, z = math.random(0, 100) / 100, w = math.random(0, 200) / 100}, {math.random(0, 100) / 100, math.random(0, 100) / 100, 0, 0}) vd.config.paints[index] = paint extensions.core_vehicle_manager.liveUpdateVehicleColors(objID, veh, index, paint) end extensions.core_vehicle_partmgmt.setPartsConfig(all_parts, true)