Redwall:Warlords Hidden Fox released!

Started by The Lady Shael, December 15, 2008, 07:51:05 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

The Lady Shael

Oh, how exciting! =D

Yes, after perhaps a year or more of waiting, I give you......the RWL source code!

-> http://www.redwallwarlords.com/download.html <-

Direct download: http://www.redwallwarlords.com/hiddenfox-v1.rar

Please go easy on my coding skills, RWL was my first big project experience, and I really had no one to help me.

If you have any questions about the code or something related, you can direct them to me.
~The Lady Shael Varonne the Benevolent of the Southern Islands, First Empress of Mossflower Country, and Commandress of the Daughters of Delor

RWLers, your wish is my command...as long as it complies with the rules.


nivek the badger warlord

silence I kill you!!!!

bjornredtail

This means you can 'install' RWL to your own computer (if you have the right software) or to a sever someplace. This way, if you could operate a game like RWL for others to play, or mess around with the code for you own enjoyment.
0==={=B=J=O=R=N=R=E=D=T=A=I=L==>
AKA, Nevadacow
First person to ever play RWL

"Program testing can be used to show the presence of bugs, but never to show their absence!"-Edsger W. Dijkstra

Visit http://frostnflame.org today!

The Obliterator

What type of software do you need to install it onto your compy.
Watching people fight is fun...
...but getting involved is so much better

windhound

An Apache (or IIS) server, PHP, and a MySQL database
WAMP looks decent.  If you're just playin' around I would not recommend trying to install each separately in windows.  Significantly easier in linux, but that's a whole 'nother thing...

phpMyAdmin makes it easier to deal with the MySQL database once you get Apache running.

If you want other people to beable to connect to the game you need to open Port 80 on your computer and possibly router, and a service like http://no-ip.org would make it easier to find.
IE, my server is at http://blackbirdfly.no-ip.org, which is easier than typing http://152.7.34.238

Not hard.  But not exactly intuitive.
A Goldfish has an attention span of 3 seconds...  so do I
~ In the beginning there was nothing, which exploded ~
There are only 10 types of people in the world: Those who understand binary, and those who don't

Yellow Eyes

Um, I know I haven't shown my face around here in a while, but um,  ::) could you possible post the code in a version other than RAR? So my Mac can download it properly?

windhound

I'll agree RAR is a bit of an odd choice...  I'd have chosen tar.gz =P
But dont pretend there arnt options for opening it on a mac
5 second google search turned up http://www.unrarx.com/ - which is a sourceforge project, thus free and (generally) safe.
A Goldfish has an attention span of 3 seconds...  so do I
~ In the beginning there was nothing, which exploded ~
There are only 10 types of people in the world: Those who understand binary, and those who don't

Sicarius

#7
For your attention:
After installing the game on the server and after registration there is a problem to login.

I solve this problem after i deleted this code in login.php file on line 153-159:
       $filename = "proxies.txt";

$handle = fopen ($filename, "r");

$contents = fread ($handle, filesize($filename));

fclose ($handle);



RS-Wolf Methos

Sicarius

#8
In Addition:
The game guide in the game, near the refresh button doesn't working.
You can fix it by replace little code on line 3:
Find:
$loggedin =  mysql_fetch_row(dbquery("SELECT num FROM $playerdb WHERE username='$cookie[usernamecookie]' AND password='$cookie[passwordcookie]';"));
Replace with:
mysql_query instead of dbquery.
That should do the work.



RS-Wolf Methos

bjornredtail

Actually, I would NOT make the second change that Sicarius suggests. It might open up a security hole. An attacker could pass the server a 'bad' cookie, or rather one that has been modified to inject an SQL query. dbquery is Retto's privative attempt at filtering stuff like that out.
0==={=B=J=O=R=N=R=E=D=T=A=I=L==>
AKA, Nevadacow
First person to ever play RWL

"Program testing can be used to show the presence of bugs, but never to show their absence!"-Edsger W. Dijkstra

Visit http://frostnflame.org today!

Sicarius

Hmm, thank you for bringing this to my attention.
Anyway, i know it was like that before Retto left. I just change it from nonworking condition to a workable one.

By the way: All the changes you do in the files for your responsibility only.



RS-Wolf Methos

Sicarius

I will not recommend to use this new version.
Most of the changes there are good, but there is few critical problems.


I encounter in:
reset - Isn't working, i tried to reset and didn't found the pass and the username. When i checked the file i fount that the pass and the user are censored. There was some code that sets a date to the reset, i still not sure if it's works, but anyway i prefer the old reset.

change eras - well, when i am trying change some words like HUTS to MAGIC TOWERS and then update it shows me this:
MySQL Query Error (1054) Unknown column 'news' in 'field list'
UPDATE eras SET news = "Imperium" WHERE id = 1;

i tried to fix it but without any success.
If Shael or someone can help with this i appreciate it.



RS-Wolf Methos

The Lady Shael

The reset.php user and pass are censored for security's sake, just in case someone was able to hack into an admin account and felt like resetting just for fun. When you set it up, you are supposed to change the user and pass to whatever you want.

I did start coding a timed reset, and never finished it, I should probably take that code out.

I have no idea why you're getting that SQL error, it seems to be a problem on our game too, but I don't have time to figure it out now. You can just change it through the database directly using phpmyadmin.
~The Lady Shael Varonne the Benevolent of the Southern Islands, First Empress of Mossflower Country, and Commandress of the Daughters of Delor

RWLers, your wish is my command...as long as it complies with the rules.


Sicarius

#13
First of all. I really appreciate the fast answer, its very important to get answers in such cases as fast as it possible.
So, i am glad to hear from you in a short time.

Now, about the other subjects:
RESET: I didn't tried yet what you suggest, but i think that can work. Also it may be a good thin to replace this file with the old reset.php file.

CHANGE ERAS: I already tried to edit the content from the database and it gave me gibberish latter's of "?" all the way. I will try one more option and will see if it works.
I also noticed that...i think maybe some code combined together by a mistake, cause if you look you will see that everything that you write on Miscellaneous -->game news and then try to update\change some content on eras you will see here:[Mark with red]
MySQL Query Error (1054) Unknown column 'news' in 'field list'
UPDATE eras SET news = "Imperium" WHERE id = 1;

the same content you wrote on game news in Miscellaneous.


This is my first impression about the second case, i have some suspicion that there is more.
Do you have a messenger account?



RS-Wolf Methos

Sicarius

#14
Well i managed to understand where the problem but i don't know how to fix it.
Instead i found another way to bring it to workable state, the problem is in header.php file and after i replaced that file with an older one it done the work and now it's working.


If you don't have any older version of the game\files you can download it from here[the file that repair the problem]:
http://www.imperium.speeds.co.il/header.rar



RS-Wolf Methos