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.
Newbie Spellweaver
Joined
Apr 6, 2009
Messages
21
Reaction score
1
i got this 2 error
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in /home/wadtalkingyou/public_html/travian/s1/include/database.php on line 14

Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in /home/wadtalkingyou/public_html/travian/s1/include/database.php on line 25

Any fix? i using the latest SVN

Thanks
 
Newbie Spellweaver
Joined
Jan 2, 2010
Messages
26
Reaction score
2
wadtalkingyou: It wont work on a regular host at the moment it seems only on WAMP. I've tried and it is something with the connect line that returns a 1 / 0 but php expects something else. This is also only duplicate check So if you want I think you can just go around it for the moment (no guaranties though).
 
Newbie Spellweaver
Joined
Apr 6, 2009
Messages
21
Reaction score
1
ic ya you right, i uploaded on my webhost...thanks for your info. i will be instaling wamp and mysqli to my com =)

Thanks =)
 
Newbie Spellweaver
Joined
Jul 25, 2008
Messages
23
Reaction score
0
all of you using wamp and that works can you guys please make a video tut or something???
 
Newbie Spellweaver
Joined
Nov 3, 2009
Messages
38
Reaction score
0
all of you using wamp and that works can you guys please make a video tut or something???

me work the wamp :rolleyes:



---------- Post added at 02:22 PM ---------- Previous post was at 12:43 PM ----------

her pr

$class = ($i == 21)? "dx1" : "building d$i";
echo "<img src=\"img/x.gif\" class=\"$class $img\" alt=\"$text\" />";
 
Newbie Spellweaver
Joined
Jul 25, 2008
Messages
23
Reaction score
0
me work the wamp :rolleyes:



---------- Post added at 02:22 PM ---------- Previous post was at 12:43 PM ----------

her pr

$class = ($i == 21)? "dx1" : "building d$i";
echo "<img src=\"img/x.gif\" class=\"$class $img\" alt=\"$text\" />";

what is that code for??
 
Newbie Spellweaver
Joined
Jul 25, 2008
Messages
23
Reaction score
0
YEAH!!!!!!!!! i got it to work

my problem was where it said in sessions.php, the "function getActivate" showed use md5($name.$pass)... there i took out $name and had it out of the md5 like this :

$name, md5($pass)...

plz tell me if ths is correct


now all the buildings and fields are the problems

---------- Post added at 08:42 AM ---------- Previous post was at 08:14 AM ----------

i got this 2 error


Any fix? i using the latest SVN

Thanks

donno if this is a bit late but i dont think ur problem is with the host. check ur constants.php where it says table prefix and make sure ur tables in the database are exactly the same

i didnt do this and i got exact same problem
 
Newbie Spellweaver
Joined
Jan 2, 2010
Messages
26
Reaction score
2
Okay, now I'm pissed. To all you that wants to know if there is any private server/working copy of this that is close to the real thing.

NO

This is an Pre Alpha meaning that it is in an early state of development. There is no installation guide/script there is no support for Mysql/mssql or any other DB at the moment. It won't work at any capacity other then in small parts and there you will have incomplete things to. This is a Alpha meaning BEFORE beta which will be a more working state. This thread is about development nothing else and all you people asking for this will be better of att then trying to use this unless you know some php or sql and want to help out.

So yet again is there ANY working private server other then on WAMP?

NO

Will anyone tell you if there is?

NO

To add to the trouble is that Travian Games is unhappy about this and my thought is that we should make another look for the interface if possible.

Notice that this thread is about development not to help you get this source to work or to do adds about a private server.
 
Newbie Spellweaver
Joined
Jul 25, 2008
Messages
23
Reaction score
0
im getting irritated also i think u are right spixx

(i got few pms frm people asking me that)

if u guys want a private server, i will set up a demo of akakori's source soon

so plz dont start asking about it anymore
 
akakori
Joined
Apr 3, 2008
Messages
368
Reaction score
98
svn is off cause i personally took it off.. i am revamping the world system right now... i am going to use xml instead of sql for the world system.. it should drastically speed up the map system.. so.. please give me some time.. xml is still something new to me.. unless someone wants to help me map out 641064 bases in xml..
 
Newbie Spellweaver
Joined
Jul 25, 2008
Messages
23
Reaction score
0
svn is off cause i personally took it off.. i am revamping the world system right now... i am going to use xml instead of sql for the world system.. it should drastically speed up the map system.. so.. please give me some time.. xml is still something new to me.. unless someone wants to help me map out 641064 bases in xml..

i can help u a bit

cause i have holidays and i have nothing to do :D

im not sure but will all the map data be same in xml structure?
 
akakori
Joined
Apr 3, 2008
Messages
368
Reaction score
98
here's a sample of the xmldata.. well i am testing with it anyway...

<?xml version="1.0" encoding="utf-8"?>
<p400>
<n400>
<Type>3</Type>
<ID>1</ID>
<Pic>t0</Pic>
</n400>
<n399>
<Type>4</Type>
<ID>2</ID>
<Pic>t0</Pic>
</n399>
</p400>

while this is the php to read the xml.. =) apparently i got it working.. so i am going to start thinking of a way to convert the 801*801 bases to xml.. =)

<?php
$row = 'p400';
$column = 'n400';
$doc = new DOMDocument();
$doc->load( 'include/wdata.xml' );
$dataset = $doc->getElementsByTagName($row);
foreach($dataset as $doc2) {
$dataset2 = $doc2->getElementsByTagName($column);
foreach( $dataset2 as $row )
{
$type = $row->getElementsByTagName("Type");
$type = $type->item(0)->nodeValue;

$id = $row->getElementsByTagName( "ID" );
$id = $id->item(0)->nodeValue;

$pic = $row->getElementsByTagName( "Pic" );
$pic = $pic->item(0)->nodeValue;

echo "$type - $id - $pic\n";
}
}
?>

---------- Post added at 02:09 AM ---------- Previous post was at 12:59 AM ----------

here's a more full version of it.. with the entire 801*801 bases down.. lol.. give it a try.. i am thinking of splitting them into 801 different files containing 801 different rows.. but i am still considering on it.. or i might instead work on the sql to contain 801 tables.. > > either or.. there shld be a way to speed up the map system... i am very unsatisfied with 11k ms for full sql map search or 4k ms for a singular search on xml.. zzz
 
Last edited:
Status
Not open for further replies.
Back
Top