Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Travian P-Alpha 2.03 (All bases support)

Status
Not open for further replies.
Initiate Mage
Joined
Dec 20, 2009
Messages
20
Reaction score
0
please help with login, it only refresh, and it show:
Notice: Undefined index: 3 in C:\wamp-new\www\s1\login.php on line 12
please help me, thx :)
 
Initiate Mage
Joined
Jan 17, 2010
Messages
2
Reaction score
0
Hello ,
i can help with karte.php , if i know what you are thinking yet.
where can i find karte.php ?
 
akakori
Joined
Apr 3, 2008
Messages
368
Reaction score
98
who ever needs help on source or wants source can find me on msn.. or drop me a pm.. > > svn will be down for some time
 
akakori
Joined
Apr 3, 2008
Messages
368
Reaction score
98
i have fixed map system at last.. lol.. uploaded into rapidshare.. released =) go get it lol
 
Initiate Mage
Joined
Nov 3, 2009
Messages
38
Reaction score
0
my fi .... not work links this :



error

---------- Post added at 06:45 PM ---------- Previous post was at 05:33 PM ----------

NEW links :
 
Initiate Mage
Joined
Nov 3, 2009
Messages
38
Reaction score
0
prablom agin login the games

---------- Post added at 03:45 AM ---------- Previous post was at 03:17 AM ----------

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2 bytes) in C:\wamp\www\Travian_Clone\s1\include\functions.php on line 0
 
akakori
Joined
Apr 3, 2008
Messages
368
Reaction score
98
eh... lol.. wtf.. 2 byte?

---------- Post added at 12:38 PM ---------- Previous post was at 12:28 PM ----------

i figured out whats the problem.. change the functions in this part..

function generateBase($sector) {
global $database;
switch($sector) {
case 0:
$q = "Select * from ".TB_PREFIX."WDATA where fieldtype = 3 and occupied = 0 LIMIT 200";
break;
case 1:
$q = "Select * from ".TB_PREFIX."WDATA where fieldtype = 3 and x < 0 and y > 0 and occupied = 0 LIMIT 200";
break;
case 2:
$q = "Select * from ".TB_PREFIX."WDATA where fieldtype = 3 and x > 0 and y > 0 and occupied = 0 LIMIT 200";
break;
case 3:
$q = "Select * from ".TB_PREFIX."WDATA where fieldtype = 3 and x < 0 and y < 0 and occupied = 0 LIMIT 200";
break;
case 4:
$q = "Select * from ".TB_PREFIX."WDATA where fieldtype = 3 and x > 0 and y < 0 and occupied = 0 LIMIT 200";
break;
}
$result = $database->query($q);
$num_rows = mysqli_num_rows($result);
$row = $result->fetch_all(MYSQLI_ASSOC);
$base = rand(0, ($num_rows-1));
return $row[$base]['id'];
}
 
Initiate Mage
Joined
Jul 25, 2008
Messages
23
Reaction score
0
cant believe you got all 640k of data done. 33MB!!!

you are awseome!
 
akakori
Joined
Apr 3, 2008
Messages
368
Reaction score
98
anyway... i am going to fix the oasis and different base type.. you guys would be able to see a more proper sql data on the next release.. for now i am back working on buildings.. just fixed up embassy...
 
akakori
Joined
Apr 3, 2008
Messages
368
Reaction score
98
added a fixed version of things.. well it also includes.. the fix for karte.php ajax.. meaning ajax works now for it..
 
Initiate Mage
Joined
Jul 25, 2008
Messages
23
Reaction score
0
is it just me or none of the buildings work??

and also when will you get a proper svn up?
 
akakori
Joined
Apr 3, 2008
Messages
368
Reaction score
98
u sure all dont work? i am dead sure i fixed warehouse granary embassy and city wall (roman) > >

---------- Post added at 12:38 PM ---------- Previous post was at 12:38 PM ----------

if u talking abt the rest. yes i know it doesnt work..

and also when will you get a proper svn up? <==

Seriously i dont know.. but does that really matter?
 
Banned
Banned
Joined
Sep 1, 2006
Messages
477
Reaction score
15
What did you use to import wdata? phpmyadmin freezes then gives a run time eror when i try to insert it because its so big lol and i cant just click import then the file wont take that big of a file :p

edit: heh i just import parts of it at once lol didn't error then :p
BTW IT WORKS no more god dam error ... nice job so far haven't done much yet
 
Last edited:
Initiate Mage
Joined
Jul 25, 2008
Messages
23
Reaction score
0
What did you use to import wdata? phpmyadmin freezes then gives a run time eror when i try to insert it because its so big lol and i cant just click import then the file wont take that big of a file :p

edit: heh i just import parts of it at once lol didn't error then :p
BTW IT WORKS no more god dam error ... nice job so far haven't done much yet

you can use mysql browsers like navicat and then import sql





akakori for me, when im press build warehouse or other things it show the building picture on dorf2.php and time 00:00 and it refreshes with at least 15 errors on top

Warning: array_search() expects parameter 2 to be array, null given in C:\wamp\www\travian\s1\include\functions.php on line 641


Notice: Undefined index: in C:\wamp\www\travian\s1\include\functions.php on line 141
 
Banned
Banned
Joined
Sep 1, 2006
Messages
477
Reaction score
15
navicat keeps telling me a field is not filled in or some such dumb thing and wont work so i don't use it
 
Initiate Mage
Joined
Jan 20, 2010
Messages
1
Reaction score
0
Good luck for your amazing project :): !

HackHeaven > For your sql matter, try BigDump.
 
Initiate Mage
Joined
Jan 17, 2010
Messages
2
Reaction score
0
Thanks for the great work , about the sql dumb , you dont need it !
PLease .. just do a loop with insert command .
for x = -400 to 400
for y = 400 to -400
insert into map values 0,3,0 .x .y ... etc
next y
next x

Done .
 
Status
Not open for further replies.
Back
Top