This happens with a clean installation directly downloaded from the download page. I can't think of anything I could've done wrong because I haven't done anything.
Forum
CS2D Mods CS2DTibia - RPGThis happens with a clean installation directly downloaded from the download page. I can't think of anything I could've done wrong because I haven't done anything.
Crossbow can't be bought in this original version, but you can script it to anything you want.
and when I open the console appears this: [code] LUA ERROR: sys/lua/cs2d/monsters.lua: 323: attempt to index field '? " (A nil value) [/ code]
and it appears that too: [code] Moon ERROR: sys/lua/cs2dtibia/hooks.lua: 48 attempt to index field '? " (A nil value) [/ code]
What are the problem?
Appleee has written
When I create the server appears to play solo monsters walking over it because they do not attack people?
and when I open the console appears this: [code] LUA ERROR: sys/lua/cs2d/monsters.lua: 323: attempt to index field '? " (A nil value) [/ code]
and it appears that too: [code] Moon ERROR: sys/lua/cs2dtibia/hooks.lua: 48 attempt to index field '? " (A nil value) [/ code]
What are the problem?
and when I open the console appears this: [code] LUA ERROR: sys/lua/cs2d/monsters.lua: 323: attempt to index field '? " (A nil value) [/ code]
and it appears that too: [code] Moon ERROR: sys/lua/cs2dtibia/hooks.lua: 48 attempt to index field '? " (A nil value) [/ code]
What are the problem?
use dedicated server to host this mode
The error I get is this one:
1
2
3
4
2
3
4
[16:12:23] Starting transfer to kiwi @ laptop (files: 16) ... [16:12:23] kiwi @ laptop needs or accepts no files. [16:12:31] LUA ERROR: sys/lua/cs2dtibia/monsters.lua:313: attempt to index a nil value [16:
Its where the monsters choose a spawnpoint. But I can't figure out what the problem is since I only changed the safezones and 1 house (to test). This all works btw so... I don't get it anymore.
The edited safezones and house.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
SAFEZONE = { 	{{1,1},{21,24}}, 	{{1,72},{26,101}}, 	{{104,1},{124,124}}, } PVPZONE = { 	{{88,32},{98,43},{88,30}}, } HOUSES = { 	{pos1 = {104,1}, pos2 = {109,5}, ent = {110,1}, door = {109,1}, price = 500, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 1_1 	{pos1 = {91,2}, pos2 = {93,5}, ent = {93,6}, door = {93,5}, price = 300, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 2_1 	{pos1 = {95,2}, pos2 = {97,5}, ent = {97,6}, door = {97,5}, price = 300, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 3_1 	 	{pos1 = {0,21}, pos2 = {3,24}, ent = {4,24}, door = {3,24}, price = 450, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 4_1 	{pos1 = {0,26}, pos2 = {3,32}, ent = {4,26}, door = {3,26}, price = 900, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}, [2] = {}}}, -- 5_1, 5_2 	{pos1 = {8,21}, pos2 = {12,24}, ent = {7,24}, door = {8,24}, price = 450, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 6_1 	{pos1 = {8,26}, pos2 = {12,32}, ent = {7,26}, door = {8,26}, price = 900, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}, [2] = {}}}, -- 7_1, 7_2 	 	{pos1 = {99,2}, pos2 = {101,5}, ent = {101,6}, door = {101,5}, price = 300, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 8_1 	{pos1 = {103,2}, pos2 = {105,5}, ent = {105,6}, door = {105,5}, price = 300, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 9_1 	 	{pos1 = {127,86}, pos2 = {131,90}, ent = {131,91}, door = {131,90}, price = 1000, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 10_1 	{pos1 = {133,86}, pos2 = {137,90}, ent = {137,91}, door = {137,90}, price = 1000, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 11_1 	{pos1 = {139,86}, pos2 = {143,90}, ent = {143,91}, door = {143,90}, price = 1000, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 12_1 	{pos1 = {124,93}, pos2 = {128,97}, ent = {124,92}, door = {124,93}, price = 1000, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 13_1 	{pos1 = {130,93}, pos2 = {134,97}, ent = {130,92}, door = {130,93}, price = 1000, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 14_1 	{pos1 = {136,93}, pos2 = {140,97}, ent = {136,92}, door = {136,93}, price = 1000, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 15_1 	{pos1 = {142,93}, pos2 = {146,97}, ent = {142,92}, door = {142,93}, price = 1000, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 16_1 	 	{pos1 = {140,67}, pos2 = {142,69}, ent = {140,70}, door = {140,69}, price = 250, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 17_1 	{pos1 = {144,67}, pos2 = {146,69}, ent = {144,70}, door = {144,69}, price = 250, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 18_1 	{pos1 = {140,72}, pos2 = {142,74}, ent = {140,71}, door = {140,72}, price = 250, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 19_1 	{pos1 = {144,72}, pos2 = {146,74}, ent = {144,71}, door = {144,72}, price = 250, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 20_1 	 	{pos1 = {93,11}, pos2 = {98,15}, ent = {93,16}, door = {93,15}, price = 1500, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}, [2] = {}, [3] = {}}}, -- 21_1, 21_2, 21_3 	{pos1 = {100,11}, pos2 = {105,15}, ent = {105,16}, door = {105,15}, price = 1500, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}, [2] = {}, [3] = {}}}, -- 22_1, 22_2, 22_3 	{pos1 = {93,19}, pos2 = {98,23}, ent = {93,18}, door = {93,19}, price = 1500, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}, [2] = {}, [3] = {}}}, -- 23_1, 23_2, 23_3 	{pos1 = {100,19}, pos2 = {105,23}, ent = {105,18}, door = {105,19}, price = 1500, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}, [2] = {}, [3] = {}}}, -- 24_1, 24_2, 24_3 	 	{pos1 = {141,50}, pos2 = {145,53}, ent = {140,53}, door = {141,53}, price = 700, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 25_1 	{pos1 = {141,55}, pos2 = {145,58}, ent = {140,58}, door = {141,58}, price = 700, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 26_1 	{pos1 = {141,60}, pos2 = {145,63}, ent = {140,63}, door = {141,63}, price = 700, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 27_1 }
1
PVPZONE = {}
1
[16:12:31] LUA ERROR: sys/lua/cs2dtibia/monsters.lua:313: attempt to index a nil value
if they do, make sure every tile between spawn1 and spawn2 exists. if they don't, gettile will return nil which causes the indexing of it to raise an error.
otherwise, try changing line 313 to this:
1
until tile(tilex, tiley, "walkable") and tile(tilex, tiley, "frame") ~= 34 and not gettile(tilex, tiley).SAFE and not gettile(tilex, tiley).PVP
Does anyone know how to do this?
Night Till Death has written
nevermiind i understand now.. a small question.... if the !i command allows you to spawn an item by its ID then why cant i spawn a scout - crossbow? and how do i spawn money?
edited 1×, last 10.06.10 11:26:10 am
Edit: Fixed
edited 1×, last 29.06.10 03:37:04 am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{pos1 = {82,26}, pos2 = {84,29}, ent = {86,27}, door = {85,27}, price = 700, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- h1 	{pos1 = {82,31}, pos2 = {84,34}, ent = {86,33}, door = {85,33}, price = 700, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- h2 	{pos1 = {82,36}, pos2 = {84,39}, ent = {86,38}, door = {85,38}, price = 700, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- h3 	{pos1 = {89,26}, pos2 = {91,29}, ent = {87,28}, door = {88,28}, price = 700, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- h4 	{pos1 = {89,31}, pos2 = {91,34}, ent = {87,32}, door = {88,32}, price = 700, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- h5 	{pos1 = {89,36}, pos2 = {91,39}, ent = {87,38}, door = {88,38}, price = 700, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- h6 	{pos1 = {134,131}, pos2 = {138,135}, ent = {136,137}, door = {136,136}, price = 500, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- hi1 	{pos1 = {128,131}, pos2 = {132,135}, ent = {130,137}, door = {130,136}, price = 500, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- hi2 	{pos1 = {122,131}, pos2 = {126,135}, ent = {124,137}, door = {124,136}, price = 500, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- hi3 	{pos1 = {110,140}, pos2 = {113,143}, ent = {115,141}, door = {114,141}, price = 500, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- hi4 	{pos1 = {110,147}, pos2 = {113,151}, ent = {115,148}, door = {114,148}, price = 500, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- hi5 	{pos1 = {110,155}, pos2 = {113,160}, ent = {115,158}, door = {114,158}, price = 500, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- hi6 	{pos1 = {120,165}, pos2 = {126,169}, ent = {123,163}, door = {123,164}, price = 500, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- hi7 	{pos1 = {128,165}, pos2 = {132,169}, ent = {130,163}, door = {130,164}, price = 500, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- hi8 	{pos1 = {128,173}, pos2 = {132,179}, ent = {134,176}, door = {133,176}, price = 500, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- hi9 	{pos1 = {139,165}, pos2 = {142,169}, ent = {137,167}, door = {138,167}, price = 500, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- hi10 	{pos1 = {139,157}, pos2 = {142,161}, ent = {137,160}, door = {138,160}, price = 500, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- hi11
[Edit]
I fixed it doors not in rectangle of house
Thanks PyK
PyKw has written
Hi how i can add a new monster and make he respawn at 40 secounds.. Sorry for my bad english . Plase give me the code
Thanks PyK
Thanks PyK
Did you even read the documentation?