• Server will not Upload maps & DarkRP Zombie Error
    2 replies, posted
[I]I have just setup a fresh copy of DarkRP ([URL="https://github.com/FPtje/DarkRP"]github version[/URL]). After fixing the all lowercase glitch, placing css in the right spot and a few other bugs I have managed to get a basic copy of the gamemode WORKING on my dedicated srcds server.[/I] [U]Now I have two major problems--[/U] [B]Problem #1:[/B] When people connect to my server and do not have the map they are disconnected upon trying to download the map from my server see error message. [CODE]CreateFragmentsFromFile: 'maps/rp_downtown_v2.bsp' size exceeds net_maxfilesize limit (16 MB)[/CODE] I'm using workshop.vdf to obtain the map from the workshop on there it says it's 8-9 MB but could expand upon extracting not to sure how files work from the workshop. Now is this fixable? Can I set the maxfilesize limit or is this uneditable. Did Garry fuck up more shit and now servers cannot upload maps to players? How can we fix this problem which leads to my problem 1-A. [B]Problem #1-A:[/B] After realizing a FASTDL setup would be best for public players I cannot find any new tuts on how to setup a FASTDL in gmod13 the old tuts include files that do not exist anymore any help on this would be appreciated (dont say google it because obviously problem#1 would not exist, obviously I cannot find the information I'm looking for from google "for the smart asses") [B]Problem #2:[/B] Zombies do not seem to work in DarkRP, I setup some spawnpoints on my server/rp_downtown_v2 map and type: /enablezombie. The messages work great but I think we are getting an error from vectors I'm not sure exactly what it is but here is the error: [CODE][ERROR] gamemodes/darkrp/gamemode/server/util.lua:132: bad argument #2 to '__add' (Vector expected, got nil) 1. __add - [C]:-1 2. FindEmptyPos - gamemodes/darkrp/gamemode/server/util.lua:132 3. RetriveRandomZombieSpawnPos - gamemodes/darkrp/gamemode/server/data.lua:497 4. unknown - gamemodes/darkrp/gamemode/modules/events.lua:136 Timer Failed! [start2][@gamemodes/darkrp/gamemode/modules/events.lua (line 176)][/CODE] Any help would be greatly appreciated thanks for your time! -Naz [B]Lines of Error code if needed:[/B] [U]util.lua line 132 function:[/U] [LUA]function GM:FindEmptyPos(pos, ignore, distance, step, area) if GAMEMODE:IsEmpty(pos, ignore) and GAMEMODE:IsEmpty(pos + area, ignore) then return pos end for j = step, distance, step do for i = -1, 1, 2 do -- alternate in direction local k = j * i -- Look North/South if GAMEMODE:IsEmpty(pos + Vector(k, 0, 0), ignore) and GAMEMODE:IsEmpty(pos + Vector(k, 0, 0) + area, ignore) then return pos + Vector(k, 0, 0) end -- Look East/West if GAMEMODE:IsEmpty(pos + Vector(0, k, 0), ignore) and GAMEMODE:IsEmpty(pos + Vector(0, k, 0) + area, ignore) then return pos + Vector(0, k, 0) end -- Look Up/Down if GAMEMODE:IsEmpty(pos + Vector(0, 0, k), ignore) and GAMEMODE:IsEmpty(pos + Vector(0, 0, k) + area, ignore) then return pos + Vector(0, 0, k) end end end[/LUA] [U]data.lua line 497 function:[/U] [LUA]function DB.RetrieveRandomZombieSpawnPos() if #zombieSpawns < 1 then return end local r = table.Random(zombieSpawns) local pos = GAMEMODE:FindEmptyPos(r, nil, 200, 10) return pos end[/lua]
[b]#1[/b] For the maps, you've always had to change net_maxfilesize to a larger value in order for them to be downloaded. [code]net_maxfilesize 64[/code] (goes in your server.cfg) [b]#1-A[/b] It's the exact same as Garry's Mod 10, excluding uploading cache files. Just set sv_downloadurl to your webserver, and upload any custom content. [b]#2[/b] As for darkrp zombies being broken, submit an issue on the github issue tracker where you downloaded darkrp. ([url]https://github.com/FPtje/DarkRP/issues?page=1&state=open[/url])
I submitted a bug report [B]and posted a solution[/B] on the DarkRP github here: [URL="https://github.com/FPtje/DarkRP/issues/143"]https://github.com/FPtje/DarkRP/issues/143[/URL] .
Sorry, you need to Log In to post a reply to this thread.