JSONToTable Not working 100%, Am I doing it wrong?

Issue was sorta resolved. The reason it wasnt working right is because its a linux server. When its on a windows server it all runs fine.

Well I was updating RadBox for fun, And I changed places where GLON was, With JSON. So it all works great on a listen server. But once its on a dedicated server, When it loads. It creates all the ones that start with “point_” the rest end up in a null entity, Even though they exist. The dedicated server either cant find them, Or JSON isnt happy. Ending up as a error. Is this a problem with JSON or a problem with how its set up?

No other errors pop up besides this one.

EDIT: Forgot to add the error.


[ERROR] gamemodes/ras/gamemode/init.lua:215: Tried to use a NULL entity!
  1. SetPos - [C]:-1
   2. unknown - gamemodes/ras/gamemode/init.lua:215

Line 215 is marked with **

[lua]function GM:LoadAllEnts()

MsgN( "Loading radbox entity data..." )

local jsondry = util.JSONToTable( file.Read( "radbox/" .. string.lower( game.GetMap() ) .. ".txt", "DATA" ) )

if not jsondry then return end

for k,v in pairs( jsondry ) do

	if v[1] then
	
		if k == "prop_physics" then
		
			for c,d in pairs( v ) do
			
				local function spawnent()
				
					local ent = ents.Create( k )
					ent:SetPos( d[1] )
					ent:SetModel( d[2] )
					ent:SetAngles( d[3] )
					ent:SetSkin( math.random( 0, 6 ) )
					ent:Spawn()
					ent.AdminPlaced = true
					
					local phys = ent:GetPhysicsObject()
					
					if IsValid( phys ) and not d[4] then
					
						phys:EnableMotion( false )
					
					end
					
				end
				
				timer.Simple( c * 0.1, spawnent )
				
			end
			
		else
		
			for c,d in pairs( ents.FindByClass( k ) ) do
				
				d:Remove()
				
			end

			for c,d in pairs( v ) do
			
				if k != "point_radiation" && k != "info_lootspawn" then
			
					local function spawnent()
					
						local ent = ents.Create( k )
						ent:SetPos( d )
						ent:Spawn()
					
					end
				
					timer.Simple( c * 0.1, spawnent )
					
				elseif k == "info_lootspawn" then
					local function spawnent()
					
						local ent = ents.Create( "info_lootspawn" )
						** ent:SetPos( d ) **
						ent:Spawn()
						
					end
				
					timer.Simple( c * 0.1, spawnent )
				else
				
					local ent = ents.Create( k )
					ent:SetPos( d )
					ent:Spawn()
			
				end

			end
			
		end
		
	end
	
end

end[/lua]

–Whoops, seems it was fixed an hour ago–

If it’s not working right on a linux, it’s because linux servers don’t do the virtual folders thing right, from what I understand. Try installing all the files directly into the gmod/gmod folders and such (such as putting the gamemode folder into your gamemodes folder blahblahblah). From what I understand, the addons folder just doesn’t work in the linux environment.

Well not exactly fixed. But I found out whats causing it, Linux doesn’t appear to be very friendly to gmod.

You didn’t even check if the entity exists, this is not related to JSONToTable.

It is infact json, I cut json out and just created a table in lua and it loads just fine.

No, the line you marked:

[lua]
local ent = ents.Create( “info_lootspawn” )
** ent:SetPos( d ) **
ent:Spawn()
[/lua]

Meaning ent is NULL, means you didn’t check if the entity does exist, this is NOT a json issue, it is you not checking if the entity actually exists!

But if you were to read the code, JSON is loading and creating a table with those entity names in it. For some reason these json is not reading this entity names on linux, As it does on windows. With a table and json cut out, It works just fine.



                            local ent = ents.Create( k )
                            ent:SetPos( d )
                            ent:Spawn()


same code at openaura kills the server (because executed in global init hook) when too many static props added (don’t know what about clockwork)

Again, this has NOTHING to do with the actual json, there is no json involved in this error.

Gmod is unable to create the entity and thus returns NULL, the entity type is hardcoded and thus JSON can’t be the issue.

I know what the error means, JSON IS creating this problem. Its not the entitys. They exist. JSON just is not loading the table correctly.

How about you print both tables and compare both windows and linux?

The code:
[lua]PrintTable(util.JSONToTable( file.Read( “radbox/” … string.lower( game.GetMap() ) … “.txt”, “DATA” ) ))[/lua]

Windows:


] rcon lua_openscript printjsontable.lua
autokick is disabled for Odic Force
Running script printjsontable.lua...
info_player_army:
		1	=	-2346.090820 5996.107910 -570.968811
		2	=	-2414.977051 5952.080078 -570.968811
		3	=	-2426.180176 6028.065430 -570.968811
		4	=	-2511.503418 6022.393066 -570.968811
		5	=	-2510.533447 5947.597168 -570.968811
		6	=	-2597.396240 5994.706543 -570.968811
		7	=	-2602.291016 5922.521973 -570.968811
		8	=	-2377.438965 5761.932129 -570.968811
		9	=	-2467.262207 5764.070313 -570.968811
		10	=	-2559.233887 5764.036133 -570.968811
		11	=	-2652.519043 5763.355469 -570.968811
		12	=	-2660.152344 5816.475586 -570.968811
		13	=	-2667.993652 5890.736328 -570.968811
		14	=	-2734.708496 5908.572266 -570.968811
		15	=	-2920.817627 5767.289551 -570.968811
		16	=	-2720.909180 5774.377930 -570.968811
		17	=	-2784.486328 5747.221680 -570.968811
		18	=	-2768.175537 5214.663086 -570.968811
		19	=	-3592.643311 5190.975098 -570.968811
		20	=	-3588.065186 5258.208984 -570.968811
		21	=	-3537.722412 5258.322266 -570.968811
		22	=	-3467.469482 5182.112305 -570.968811
		23	=	-3478.604736 5259.023438 -570.968811
		24	=	-3380.932861 5147.375488 -570.968811
		25	=	-3312.308594 5110.135742 -570.968811
		26	=	-3144.496338 5049.537598 -570.968811
		27	=	-3233.227783 5049.116211 -570.968811
		28	=	-3339.879150 4981.989258 -570.968811
		29	=	-3476.083008 5051.767578 -570.968811
npc_trader_exodus:
		1	=	3390.968750 2666.215088 -1023.968811
npc_trader_bandoliers:
		1	=	1826.695435 -9447.910156 8.031300
info_npcspawn:
		1	=	-7366.520508 5175.842285 5.031300
		2	=	-10249.911133 -11802.314453 121.312698
		3	=	-3735.468750 -3500.060059 5.031300
		4	=	-8292.827148 -2904.255371 5.000000
		5	=	-8921.628906 2191.490723 62.314602
		6	=	5541.176270 -4742.493164 5.031300
		7	=	4584.998047 -44.735802 5.031300
		8	=	2312.566650 8849.462891 5.031300
		9	=	-1242.342163 3441.434082 5.031300
		10	=	-6849.534180 9488.494141 5.031300
		11	=	-4583.116699 4094.863525 146.378906
		12	=	-6705.760742 4381.557129 13.031100
		13	=	-433.428406 6926.002930 8.999900
		14	=	-1791.998657 7870.479004 5.031300
		15	=	-1062.157227 7358.977051 21.031300
		16	=	-1125.072754 7022.916504 21.031300
		17	=	3541.492188 5171.639648 5.031300
		18	=	5345.551758 8478.771484 5.031300
		19	=	7986.548828 8896.277344 5.031300
		20	=	8741.840820 12791.900391 47.116199
		21	=	9343.156250 6930.866211 5.000000
		22	=	7467.263184 6240.005859 5.031300
		23	=	6971.967773 5603.380371 5.031200
		24	=	7960.639648 5832.418945 5.031300
		25	=	7862.895996 6221.572754 5.031300
		26	=	6973.520020 6029.621094 5.031300
		27	=	7504.435547 5815.782227 5.031300
		28	=	7531.455566 6411.447754 5.031200
		29	=	7186.255371 4153.501953 -70.607101
		30	=	7517.751465 4558.982910 5.031300
		31	=	7021.003418 4291.757324 -58.682400
		32	=	7791.323242 4605.335938 5.031300
		33	=	7897.167969 4132.845215 -214.856796
		34	=	7875.697754 3862.125244 -250.968796
		35	=	8121.974609 3684.493896 -250.968796
		36	=	8048.260254 3067.224365 -250.968796
		37	=	7768.438477 3087.364258 -250.968796
		38	=	8111.356934 2707.696045 -250.968796
		39	=	8070.586426 2918.863525 -570.968811
		40	=	8010.207031 3547.962646 -570.968811
		41	=	8052.789551 3252.851807 -565.335876
		42	=	7481.860840 2987.227295 -570.968811
		43	=	7200.130859 2635.476807 -570.968811
		44	=	6932.920410 2709.904297 -570.968811
		45	=	7083.880371 2991.302979 -570.968811
		46	=	6965.798828 2885.630127 -570.968811
		47	=	7668.849121 2805.150635 -892.289490
		48	=	8116.928711 2702.202637 -890.968811
		49	=	8010.908691 3024.278320 -890.968811
		50	=	7782.024414 3111.515869 -890.968811
		51	=	7995.440430 3460.491699 -890.968811
		52	=	7824.818359 3457.900146 -890.968811
		53	=	8089.925781 3696.344727 -890.968811
		54	=	8021.962402 3898.166504 -890.968811
		55	=	8011.116211 4073.940674 -890.968811
		56	=	7829.364746 3907.898438 -890.968811
		57	=	7625.172852 4083.447998 -890.968811
		58	=	7846.170410 4042.800049 -1530.968750
		59	=	7950.216797 3452.073486 -1530.968750
		60	=	7685.547852 2347.978027 -1535.092163
		61	=	8168.999023 2378.311035 -1556.847534
		62	=	7878.093262 2911.388428 -1535.972656
		63	=	8015.013184 2731.202148 -1534.013428
		64	=	7920.848145 2569.737305 -1536.574341
		65	=	7825.970703 2372.188477 -1531.000000
		66	=	7999.285645 2567.177979 -1531.000000
prop_physics:
		1:
				1	=	-736.664124 6525.484375 61.050400
				2	=	models/props_vehicles/truck001a.mdl
				3	=	0.324 0.956 1.502
				4	=	true
		2:
				1	=	-719.590515 6524.925781 60.822498
				2	=	models/props_junk/wood_crate001a.mdl
				3	=	-1.912 5.416 1.365
				4	=	true
		3:
				1	=	-764.261414 6521.459473 59.333302
				2	=	models/props_junk/wood_crate001a.mdl
				3	=	-2.172 18.882 0.845
				4	=	true
		4:
				1	=	-1156.551636 6769.187988 16.387899
				2	=	models/props_c17/oildrum001.mdl
				3	=	-0.045 -28.559 -0.043
				4	=	true
info_player_loner:
		1	=	-10047.029297 -11353.643555 4.999800
		2	=	-10053.834961 10846.862305 37.637901
		3	=	-2454.230957 -3800.446777 5.031100
		4	=	9827.832031 -11062.173828 67.277603
		5	=	8396.015625 -84.124001 5.000000
		6	=	5865.257324 4725.606445 878.268372
		7	=	6719.958984 12106.860352 93.034103
info_lootspawn:
		1	=	6814.894043 2446.103027 -570.968811
		2	=	7229.213867 2486.135742 -570.968811
		3	=	6961.425293 2923.350830 -570.968811
		4	=	7787.802734 2292.318359 -1531.000000
		5	=	8165.143555 2322.434326 -1531.148438
		6	=	7948.784180 2486.601074 -1531.000000
		7	=	7658.122070 2711.744629 -1510.464233
		8	=	8213.349609 2821.068848 -1531.627930
		9	=	5330.599121 6625.642578 79.572601
		10	=	2291.953125 2276.400391 -345.325012
		11	=	1893.764160 2137.087158 -378.968811
		12	=	2308.247559 2875.494873 -698.968811
		13	=	3650.893799 2904.162109 -698.968811
		14	=	2314.318115 2925.549561 -1018.968811
		15	=	2044.910767 2515.907715 -1018.968811
		16	=	1928.411621 2902.334717 -1018.968811
		17	=	3018.252197 2991.184082 -698.968811
		18	=	4677.757813 -9072.526367 5.031300
		19	=	4226.038086 -9273.041016 13.031300
		20	=	4361.286621 -9555.446289 -138.968796
		21	=	3468.481934 -9690.385742 5.031300
		22	=	2481.245117 -8131.961426 13.031300
		23	=	2818.706055 -8104.140625 13.031300
		24	=	2711.379150 -8763.157227 13.031300
		25	=	2576.603271 -9336.538086 13.031300
		26	=	1513.046143 -8061.601563 21.031300
		27	=	1881.390503 -9274.231445 -266.968811
		28	=	-4139.407227 11486.592773 5.000000
		29	=	-3444.115479 45.708000 5.031300
		30	=	4294.557617 -2292.750977 5.031300
		31	=	2865.142090 3979.334473 3077.031250
		32	=	4800.167969 -1350.935791 -9.538000
		33	=	5691.129395 -1229.235229 -28.486601
		34	=	5369.922363 -714.455017 -31.637400
		35	=	5411.665527 -1548.090454 -46.828999
		36	=	5018.316406 -1343.638550 -87.457603
		37	=	5549.927246 -912.717712 -54.382099
		38	=	11069.764648 2933.361816 11.971400
		39	=	10347.100586 -4698.466309 49.044399
		40	=	2147.841797 -4058.118652 5.031300
		41	=	6918.700684 -8991.714844 5.031400
		42	=	-4307.183594 -11485.826172 21.514099
		43	=	-9323.015625 -7154.991699 5.000000
		44	=	-8790.910156 720.600830 19.497299
		45	=	-3155.569336 1300.433838 5.031300
		46	=	-332.468506 -5979.528320 5.031100
		47	=	-3266.985352 -10598.244141 26.990801
		48	=	-247.523697 -8425.531250 6.130000
		49	=	-3114.799072 -5401.086914 5.031300
info_player_bandoliers:
		1	=	1886.456421 -9527.131836 13.031300
		2	=	1881.738281 -9475.210938 13.031300
		3	=	1825.396362 -9532.821289 13.031300
		4	=	1755.133789 -9530.329102 13.031300
		5	=	1696.869995 -9524.588867 13.031300
		6	=	1672.231079 -9218.349609 -138.968796
		7	=	1661.324951 -9299.718750 -138.968796
		8	=	1664.401489 -9386.854492 -138.968796
		9	=	1814.874756 -9475.224609 -138.968796
		10	=	1812.290161 -9386.782227 -138.968796
		11	=	1799.862793 -9321.347656 -138.968796
		12	=	1735.841187 -9310.624023 -138.968796
		13	=	1733.277222 -9383.421875 -138.968796
		14	=	1725.706177 -9465.540039 -138.968796
		15	=	1849.624512 -9168.162109 13.031300
		16	=	1785.335693 -9161.201172 13.031300
		17	=	1856.291992 -9215.127930 13.031300
		18	=	1621.486328 -9158.637695 13.031300
		19	=	1603.918823 -9224.479492 13.031300
		20	=	1605.819336 -9323.412109 13.031300
		21	=	2042.330566 -9748.320313 5.031300
		22	=	1953.160645 -9743.328125 5.031300
		23	=	1833.401611 -9745.558594 5.031300
npc_trader_army:
		1	=	-2554.626709 54.842300 -93503.843750
		2	=	-2654.083740 6034.928711 -575.968811
point_skymarker:
info_player_exodus:
		1	=	3286.061035 3004.063965 -1018.968811
		2	=	2933.520264 3013.805176 -1018.968811
		3	=	2924.350342 2890.381348 -1018.968811
		4	=	2929.160156 2768.452393 -1018.968811
		5	=	2931.805420 2584.239990 -1018.968811
		6	=	3234.446289 2742.116699 -1018.968811
		7	=	2369.987061 2866.604004 -1018.968811
		8	=	2360.896484 2944.228760 -1018.968811
		9	=	2534.933594 2839.778320 -1018.968811
		10	=	2173.474365 2241.791504 -1018.968811
		11	=	2168.422363 2343.357422 -1018.968811
		12	=	2227.866211 2418.164551 -1018.968811
		13	=	2266.366943 2282.686279 -1018.968811
		14	=	2333.257080 2359.026855 -1018.968811
		15	=	2335.552002 2453.448486 -1018.968811
		16	=	2496.412842 2441.109619 -1018.968811
		17	=	3097.654053 2585.125488 -1018.968811
		18	=	3009.728760 2580.067627 -1018.968811
		19	=	3170.834229 2609.514648 -1018.968811
		20	=	3172.269531 2685.834229 -1018.968811
		21	=	3078.388184 2706.633545 -1018.968811
		22	=	3013.654053 2696.613770 -1018.968811
		23	=	3032.313477 2995.210205 -1018.968811
		24	=	3046.947998 2915.017334 -1018.968811
		25	=	3039.518311 2831.119141 -1018.968811
point_stash:
		1	=	8105.602051 3671.934082 -542.166016
		2	=	7750.097656 3180.366699 -854.935730
		3	=	2019.629639 2729.631348 -351.512512
		4	=	3472.054443 3008.412109 -674.507019
		5	=	-2695.388916 5750.084961 -343.243591
		6	=	2005.922119 -8013.629883 37.528198
		7	=	2690.283936 -9683.020508 49.676800
		8	=	4457.253906 -9577.911133 -101.512802
		9	=	-7370.594727 -9555.479492 48.418201
		10	=	-7626.975586 -8810.663086 -19.564199
		11	=	-7277.292480 -8797.787109 -43.650299
		12	=	-1.964000 -14481.193359 186.771301
		13	=	-1515.800049 6401.604980 21.031300
		14	=	-938.487183 7328.857422 21.031300
		15	=	-2198.145752 6554.968750 -328.737213
		16	=	3879.344482 4200.413086 13.031300
		17	=	7994.968750 5265.766113 27.804600
		18	=	8210.329102 5111.297363 21.259199
		19	=	7894.979004 3371.061279 -228.157806
		20	=	6841.824707 2357.031250 -536.347595
		21	=	6909.745605 2955.767822 -526.806885
		22	=	7024.728027 3745.583008 -527.142517
		23	=	8002.209473 2335.918457 -1442.772705
		24	=	8020.345215 4154.968750 -1485.758911
		25	=	8069.625977 4005.031250 -847.029724
point_radiation:
		1	=	8136.070801 2380.916016 -1564.599854
		2	=	7673.385254 2941.190430 -1531.907837
		3	=	8026.968750 3009.491943 -1534.775024
		4	=	5211.154785 -1146.755005 -121.635201


Linux:


] rcon lua_openscript printjsontable.lua
autokick is disabled for Odic Force
Running script printjsontable.lua...
inf:
		1	=	1886.456421 -9527.131836 13.031300
		2	=	1881.738281 -9475.210938 13.031300
		3	=	1825.396362 -9532.821289 13.031300
		4	=	1755.133789 -9530.329102 13.031300
		5	=	1696.869995 -9524.588867 13.031300
		6	=	1672.231079 -9218.349609 -138.968796
		7	=	1661.324951 -9299.718750 -138.968796
		8	=	1664.401489 -9386.854492 -138.968796
		9	=	1814.874756 -9475.224609 -138.968796
		10	=	1812.290161 -9386.782227 -138.968796
		11	=	1799.862793 -9321.347656 -138.968796
		12	=	1735.841187 -9310.624023 -138.968796
		13	=	1733.277222 -9383.421875 -138.968796
		14	=	1725.706177 -9465.540039 -138.968796
		15	=	1849.624512 -9168.162109 13.031300
		16	=	1785.335693 -9161.201172 13.031300
		17	=	1856.291992 -9215.127930 13.031300
		18	=	1621.486328 -9158.637695 13.031300
		19	=	1603.918823 -9224.479492 13.031300
		20	=	1605.819336 -9323.412109 13.031300
		21	=	2042.330566 -9748.320312 5.031300
		22	=	1953.160645 -9743.328125 5.031300
		23	=	1833.401611 -9745.558594 5.031300
point_radiation:
		1	=	8136.070801 2380.916016 -1564.599854
		2	=	7673.385254 2941.190430 -1531.907837
		3	=	8026.968750 3009.491943 -1534.775024
		4	=	5211.154785 -1146.755005 -121.635201
npc_trader_exodus:
		1	=	3390.968750 2666.215088 -1023.968811
npc_trader_army:
		1	=	-2554.626709 54.842300 -93503.843750
		2	=	-2654.083740 6034.928711 -575.968811
point_skymarker:
npc_trader_bandoliers:
		1	=	1826.695435 -9447.910156 8.031300
point_stash:
		1	=	8105.602051 3671.934082 -542.166016
		2	=	7750.097656 3180.366699 -854.935730
		3	=	2019.629639 2729.631348 -351.512512
		4	=	3472.054443 3008.412109 -674.507019
		5	=	-2695.388916 5750.084961 -343.243591
		6	=	2005.922119 -8013.629883 37.528198
		7	=	2690.283936 -9683.020508 49.676800
		8	=	4457.253906 -9577.911133 -101.512802
		9	=	-7370.594727 -9555.479492 48.418201
		10	=	-7626.975586 -8810.663086 -19.564199
		11	=	-7277.292480 -8797.787109 -43.650299
		12	=	-1.964000 -14481.193359 186.771301
		13	=	-1515.800049 6401.604980 21.031300
		14	=	-938.487183 7328.857422 21.031300
		15	=	-2198.145752 6554.968750 -328.737213
		16	=	3879.344482 4200.413086 13.031300
		17	=	7994.968750 5265.766113 27.804600
		18	=	8210.329102 5111.297363 21.259199
		19	=	7894.979004 3371.061279 -228.157806
		20	=	6841.824707 2357.031250 -536.347595
		21	=	6909.745605 2955.767822 -526.806885
		22	=	7024.728027 3745.583008 -527.142517
		23	=	8002.209473 2335.918457 -1442.772705
		24	=	8020.345215 4154.968750 -1485.758911
		25	=	8069.625977 4005.031250 -847.029724
prop_physics:
		1:
				1	=	-736.664124 6525.484375 61.050400
				2	=	models/props_vehicles/truck001a.mdl
				3	=	0.324 0.956 1.502
				4	=	true
		2:
				1	=	-719.590515 6524.925781 60.822498
				2	=	models/props_junk/wood_crate001a.mdl
				3	=	-1.912 5.416 1.365
				4	=	true
		3:
				1	=	-764.261414 6521.459473 59.333302
				2	=	models/props_junk/wood_crate001a.mdl
				3	=	-2.172 18.882 0.845
				4	=	true
		4:
				1	=	-1156.551636 6769.187988 16.387899
				2	=	models/props_c17/oildrum001.mdl
				3	=	-0.045 -28.559 -0.043
				4	=	true


Someone else try this. The JSON is


{"info_player_army":{"1":"[-2346.0908 5996.1079 -570.9688]","2":"[-2414.9771 5952.0801 -570.9688]","3":"[-2426.1802 6028.0654 -570.9688]","4":"[-2511.5034 6022.3931 -570.9688]","5":"[-2510.5334 5947.5972 -570.9688]","6":"[-2597.3962 5994.7065 -570.9688]","7":"[-2602.291 5922.522 -570.9688]","8":"[-2377.439 5761.9321 -570.9688]","9":"[-2467.2622 5764.0703 -570.9688]","10":"[-2559.2339 5764.0361 -570.9688]","11":"[-2652.519 5763.3555 -570.9688]","12":"[-2660.1523 5816.4756 -570.9688]","13":"[-2667.9937 5890.7363 -570.9688]","14":"[-2734.7085 5908.5723 -570.9688]","15":"[-2920.8176 5767.2896 -570.9688]","16":"[-2720.9092 5774.3779 -570.9688]","17":"[-2784.4863 5747.2217 -570.9688]","18":"[-2768.1755 5214.6631 -570.9688]","19":"[-3592.6433 5190.9751 -570.9688]","20":"[-3588.0652 5258.209 -570.9688]","21":"[-3537.7224 5258.3223 -570.9688]","22":"[-3467.4695 5182.1123 -570.9688]","23":"[-3478.6047 5259.0234 -570.9688]","24":"[-3380.9329 5147.3755 -570.9688]","25":"[-3312.3086 5110.1357 -570.9688]","26":"[-3144.4963 5049.5376 -570.9688]","27":"[-3233.2278 5049.1162 -570.9688]","28":"[-3339.8792 4981.9893 -570.9688]","29":"[-3476.083 5051.7676 -570.9688]"},"npc_trader_exodus":{"1":"[3390.9688 2666.2151 -1023.9688]"},"npc_trader_bandoliers":{"1":"[1826.6954 -9447.9102 8.0313]"},"info_npcspawn":{"1":"[-7366.5205 5175.8423 5.0313]","2":"[-10249.9111 -11802.3145 121.3127]","3":"[-3735.4688 -3500.0601 5.0313]","4":"[-8292.8271 -2904.2554 5]","5":"[-8921.6289 2191.4907 62.3146]","6":"[5541.1763 -4742.4932 5.0313]","7":"[4584.998 -44.7358 5.0313]","8":"[2312.5667 8849.4629 5.0313]","9":"[-1242.3422 3441.4341 5.0313]","10":"[-6849.5342 9488.4941 5.0313]","11":"[-4583.1167 4094.8635 146.3789]","12":"[-6705.7607 4381.5571 13.0311]","13":"[-433.4284 6926.0029 8.9999]","14":"[-1791.9987 7870.479 5.0313]","15":"[-1062.1572 7358.9771 21.0313]","16":"[-1125.0728 7022.9165 21.0313]","17":"[3541.4922 5171.6396 5.0313]","18":"[5345.5518 8478.7715 5.0313]","19":"[7986.5488 8896.2773 5.0313]","20":"[8741.8408 12791.9004 47.1162]","21":"[9343.1563 6930.8662 5]","22":"[7467.2632 6240.0059 5.0313]","23":"[6971.9678 5603.3804 5.0312]","24":"[7960.6396 5832.4189 5.0313]","25":"[7862.896 6221.5728 5.0313]","26":"[6973.52 6029.6211 5.0313]","27":"[7504.4355 5815.7822 5.0313]","28":"[7531.4556 6411.4478 5.0312]","29":"[7186.2554 4153.502 -70.6071]","30":"[7517.7515 4558.9829 5.0313]","31":"[7021.0034 4291.7573 -58.6824]","32":"[7791.3232 4605.3359 5.0313]","33":"[7897.168 4132.8452 -214.8568]","34":"[7875.6978 3862.1252 -250.9688]","35":"[8121.9746 3684.4939 -250.9688]","36":"[8048.2603 3067.2244 -250.9688]","37":"[7768.4385 3087.3643 -250.9688]","38":"[8111.3569 2707.696 -250.9688]","39":"[8070.5864 2918.8635 -570.9688]","40":"[8010.207 3547.9626 -570.9688]","41":"[8052.7896 3252.8518 -565.3359]","42":"[7481.8608 2987.2273 -570.9688]","43":"[7200.1309 2635.4768 -570.9688]","44":"[6932.9204 2709.9043 -570.9688]","45":"[7083.8804 2991.303 -570.9688]","46":"[6965.7988 2885.6301 -570.9688]","47":"[7668.8491 2805.1506 -892.2895]","48":"[8116.9287 2702.2026 -890.9688]","49":"[8010.9087 3024.2783 -890.9688]","50":"[7782.0244 3111.5159 -890.9688]","51":"[7995.4404 3460.4917 -890.9688]","52":"[7824.8184 3457.9001 -890.9688]","53":"[8089.9258 3696.3447 -890.9688]","54":"[8021.9624 3898.1665 -890.9688]","55":"[8011.1162 4073.9407 -890.9688]","56":"[7829.3647 3907.8984 -890.9688]","57":"[7625.1729 4083.448 -890.9688]","58":"[7846.1704 4042.8 -1530.9688]","59":"[7950.2168 3452.0735 -1530.9688]","60":"[7685.5479 2347.978 -1535.0922]","61":"[8168.999 2378.311 -1556.8475]","62":"[7878.0933 2911.3884 -1535.9727]","63":"[8015.0132 2731.2021 -1534.0134]","64":"[7920.8481 2569.7373 -1536.5743]","65":"[7825.9707 2372.1885 -1531]","66":"[7999.2856 2567.178 -1531]"},"prop_physics":{"1":{"1":"[-736.6641 6525.4844 61.0504]","2":"models/props_vehicles/truck001a.mdl","3":"{0.3245 0.9564 1.5019}","4":true},"2":{"1":"[-719.5905 6524.9258 60.8225]","2":"models/props_junk/wood_crate001a.mdl","3":"{-1.912 5.4159 1.3648}","4":true},"3":{"1":"[-764.2614 6521.4595 59.3333]","2":"models/props_junk/wood_crate001a.mdl","3":"{-2.1725 18.8822 0.8453}","4":true},"4":{"1":"[-1156.5516 6769.188 16.3879]","2":"models/props_c17/oildrum001.mdl","3":"{-0.0452 -28.5587 -0.0434}","4":true}},"info_player_loner":{"1":"[-10047.0293 -11353.6436 4.9998]","2":"[-10053.835 10846.8623 37.6379]","3":"[-2454.231 -3800.4468 5.0311]","4":"[9827.832 -11062.1738 67.2776]","5":"[8396.0156 -84.124 5]","6":"[5865.2573 4725.6064 878.2684]","7":"[6719.959 12106.8604 93.0341]"},"info_lootspawn":{"1":"[6814.894 2446.103 -570.9688]","2":"[7229.2139 2486.1357 -570.9688]","3":"[6961.4253 2923.3508 -570.9688]","4":"[7787.8027 2292.3184 -1531]","5":"[8165.1436 2322.4343 -1531.1484]","6":"[7948.7842 2486.6011 -1531]","7":"[7658.1221 2711.7446 -1510.4642]","8":"[8213.3496 2821.0688 -1531.6279]","9":"[5330.5991 6625.6426 79.5726]","10":"[2291.9531 2276.4004 -345.325]","11":"[1893.7642 2137.0872 -378.9688]","12":"[2308.2476 2875.4949 -698.9688]","13":"[3650.8938 2904.1621 -698.9688]","14":"[2314.3181 2925.5496 -1018.9688]","15":"[2044.9108 2515.9077 -1018.9688]","16":"[1928.4116 2902.3347 -1018.9688]","17":"[3018.2522 2991.1841 -698.9688]","18":"[4677.7578 -9072.5264 5.0313]","19":"[4226.0381 -9273.041 13.0313]","20":"[4361.2866 -9555.4463 -138.9688]","21":"[3468.4819 -9690.3857 5.0313]","22":"[2481.2451 -8131.9614 13.0313]","23":"[2818.7061 -8104.1406 13.0313]","24":"[2711.3792 -8763.1572 13.0313]","25":"[2576.6033 -9336.5381 13.0313]","26":"[1513.0461 -8061.6016 21.0313]","27":"[1881.3905 -9274.2314 -266.9688]","28":"[-4139.4072 11486.5928 5]","29":"[-3444.1155 45.708 5.0313]","30":"[4294.5576 -2292.751 5.0313]","31":"[2865.1421 3979.3345 3077.0313]","32":"[4800.168 -1350.9358 -9.538]","33":"[5691.1294 -1229.2352 -28.4866]","34":"[5369.9224 -714.455 -31.6374]","35":"[5411.6655 -1548.0905 -46.829]","36":"[5018.3164 -1343.6385 -87.4576]","37":"[5549.9272 -912.7177 -54.3821]","38":"[11069.7646 2933.3618 11.9714]","39":"[10347.1006 -4698.4663 49.0444]","40":"[2147.8418 -4058.1187 5.0313]","41":"[6918.7007 -8991.7148 5.0314]","42":"[-4307.1836 -11485.8262 21.5141]","43":"[-9323.0156 -7154.9917 5]","44":"[-8790.9102 720.6008 19.4973]","45":"[-3155.5693 1300.4338 5.0313]","46":"[-332.4685 -5979.5283 5.0311]","47":"[-3266.9854 -10598.2441 26.9908]","48":"[-247.5237 -8425.5313 6.13]","49":"[-3114.7991 -5401.0869 5.0313]"},"point_skymarker":[],"npc_trader_army":{"1":"[-2554.6267 54.8423 -93503.8438]","2":"[-2654.0837 6034.9287 -575.9688]"},"point_radiation":{"1":"[8136.0708 2380.916 -1564.5999]","2":"[7673.3853 2941.1904 -1531.9078]","3":"[8026.9688 3009.4919 -1534.775]","4":"[5211.1548 -1146.755 -121.6352]"},"point_stash":{"1":"[8105.6021 3671.9341 -542.166]","2":"[7750.0977 3180.3667 -854.9357]","3":"[2019.6296 2729.6313 -351.5125]","4":"[3472.0544 3008.4121 -674.507]","5":"[-2695.3889 5750.085 -343.2436]","6":"[2005.9221 -8013.6299 37.5282]","7":"[2690.2839 -9683.0205 49.6768]","8":"[4457.2539 -9577.9111 -101.5128]","9":"[-7370.5947 -9555.4795 48.4182]","10":"[-7626.9756 -8810.6631 -19.5642]","11":"[-7277.2925 -8797.7871 -43.6503]","12":"[-1.964 -14481.1934 186.7713]","13":"[-1515.8 6401.605 21.0313]","14":"[-938.4872 7328.8574 21.0313]","15":"[-2198.1458 6554.9688 -328.7372]","16":"[3879.3445 4200.4131 13.0313]","17":"[7994.9688 5265.7661 27.8046]","18":"[8210.3291 5111.2974 21.2592]","19":"[7894.979 3371.0613 -228.1578]","20":"[6841.8247 2357.0313 -536.3476]","21":"[6909.7456 2955.7678 -526.8069]","22":"[7024.728 3745.583 -527.1425]","23":"[8002.2095 2335.9185 -1442.7727]","24":"[8020.3452 4154.9688 -1485.7589]","25":"[8069.626 4005.0313 -847.0297]"},"info_player_exodus":{"1":"[3286.061 3004.064 -1018.9688]","2":"[2933.5203 3013.8052 -1018.9688]","3":"[2924.3503 2890.3813 -1018.9688]","4":"[2929.1602 2768.4524 -1018.9688]","5":"[2931.8054 2584.24 -1018.9688]","6":"[3234.4463 2742.1167 -1018.9688]","7":"[2369.9871 2866.604 -1018.9688]","8":"[2360.8965 2944.2288 -1018.9688]","9":"[2534.9336 2839.7783 -1018.9688]","10":"[2173.4744 2241.7915 -1018.9688]","11":"[2168.4224 2343.3574 -1018.9688]","12":"[2227.8662 2418.1646 -1018.9688]","13":"[2266.3669 2282.6863 -1018.9688]","14":"[2333.2571 2359.0269 -1018.9688]","15":"[2335.552 2453.4485 -1018.9688]","16":"[2496.4128 2441.1096 -1018.9688]","17":"[3097.6541 2585.1255 -1018.9688]","18":"[3009.7288 2580.0676 -1018.9688]","19":"[3170.8342 2609.5146 -1018.9688]","20":"[3172.2695 2685.8342 -1018.9688]","21":"[3078.3882 2706.6335 -1018.9688]","22":"[3013.6541 2696.6138 -1018.9688]","23":"[3032.3135 2995.2102 -1018.9688]","24":"[3046.948 2915.0173 -1018.9688]","25":"[3039.5183 2831.1191 -1018.9688]"},"info_player_bandoliers":{"1":"[1886.4564 -9527.1318 13.0313]","2":"[1881.7383 -9475.2109 13.0313]","3":"[1825.3964 -9532.8213 13.0313]","4":"[1755.1338 -9530.3291 13.0313]","5":"[1696.87 -9524.5889 13.0313]","6":"[1672.2311 -9218.3496 -138.9688]","7":"[1661.325 -9299.7188 -138.9688]","8":"[1664.4015 -9386.8545 -138.9688]","9":"[1814.8748 -9475.2246 -138.9688]","10":"[1812.2902 -9386.7822 -138.9688]","11":"[1799.8628 -9321.3477 -138.9688]","12":"[1735.8412 -9310.624 -138.9688]","13":"[1733.2772 -9383.4219 -138.9688]","14":"[1725.7062 -9465.54 -138.9688]","15":"[1849.6245 -9168.1621 13.0313]","16":"[1785.3357 -9161.2012 13.0313]","17":"[1856.292 -9215.1279 13.0313]","18":"[1621.4863 -9158.6377 13.0313]","19":"[1603.9188 -9224.4795 13.0313]","20":"[1605.8193 -9323.4121 13.0313]","21":"[2042.3306 -9748.3203 5.0313]","22":"[1953.1606 -9743.3281 5.0313]","23":"[1833.4016 -9745.5586 5.0313]"}}

That’s weird, the error states that your entity is null :confused:

Well, Look at the difference between both printed tables. For some reason its not reading it. I had a friend try it on his linux server. And it works correctly, I can only assume its the linux server that im using.