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!

Psytrac's 1.4.4 release, 343 style

Legendary Battlemage
Joined
Aug 6, 2004
Messages
608
Reaction score
120
thx, yeah i was already able to access that but i want a full flavored website kinda like vendetta set up. gonna have to look into the code and see what i can do. thx for the reply tho ^^, plus trying to figure out how to connect using WAN



Edit- nvm i got it running on WAN now, so glad I have been working with code and networking for as long as I have ^^ now all thats left is the website, and ofc how to use things like the boutique editer and rates editor from within Linux ^^
 
Last edited:
Experienced Elementalist
Joined
Oct 11, 2010
Messages
218
Reaction score
37
Thanks for the release, server is working great :) I'm having client version too low errors, which is really puzzling me cos I've done the following: - downloaded your linked client and used cup, made sure gshop matches client/serverside, checked version client (and server side, both are 1.4.4), as well as elements.data, and tasks.data. So I'm scratching my head as to why I'm getting them :/

Edit: nevermind lol, realised when copying the gshop from client side to serverside, when using Winscp, on custom transfer options, make sure to uncheck "preserve timestamp".
 
Last edited:
Newbie Spellweaver
Joined
Sep 25, 2011
Messages
30
Reaction score
23
Hi all

I wanted to share my temporary fix for Live Chat
It's not prettiest solution but it works perfectly
For newbies like me this is good enought until pwAdmin 1.4.4 will be released, if ever

I modified code so when you submit message it's then send to both Live Chat and iWeb using javascript


All you need is a small change in one file in:

Code:
opt\apache-tomcat-5.5.28\2\webapps\pwAdmin\addons\Live Chat\index.jsp



Changes in code are marked in red
Code:
<%@page import="java.io.*"%>
<%@page import="java.util.*"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="org.apache.axis.encoding.Base64"%>
<%@include file="../../WEB-INF/.pwadminconf.jsp"%>

<%
	String message = "<br>";
	boolean allowed = false;

	if(request.getSession().getAttribute("ssid") == null)
	{
		message = "<font color=\"#ee0000\"><b>Login to use Live Chat...</b></font>";
	}
	else
	{
		allowed = true;
	}
%>

<%
	if(request.getParameter("process") != null && allowed)
	{
		if(request.getParameter("process").compareTo("delete") == 0)
		{
			try
			{
				FileWriter fw = new FileWriter(pw_server_path + "/logs/world2.chat");
				fw.close();
				message = "<font color=\"#00cc00\"><b>Chat Log File Cleared</b></font>";
			}
			catch(Exception e)
			{
				message = "<font color=\"#ee0000\"><b>Clearing Chat Log File Failed</b></font>";
			}
		}

		if(request.getParameter("[COLOR="Red"]msg[/COLOR]") != null)
		{
			String broadcast = request.getParameter("[COLOR="Red"]msg[/COLOR]");

			if(protocol.DeliveryDB.broadcast((byte)9, -1, broadcast))
			{
				message = "<font color=\"#00cc00\"><b>Message Send</b></font>";
				try
				{
					BufferedWriter bw = new BufferedWriter(new FileWriter(pw_server_path + "/logs/world2.chat", true));
					bw.write((new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(Calendar.getInstance().getTime())) + " pwserver glinkd-0: chat : Chat: src=-1 chl=9 msg=" + Base64.encode(broadcast.getBytes("UTF-16LE")) + "\n") ;
					bw.close() ;
				}
				catch(Exception e)
				{
					message += "<br><font color=\"#ee0000\">Appending Message to Log File Failed</font>";
				}
			}
			else
			{
				message = "<font color=\"#ee0000\"><b>Sending Message Failed</b></font>";
			}
		}
	}
%>

<html>

<head>
	<link rel="shortcut icon" href="../../include/fav.ico">
	<link rel="stylesheet" type="text/css" href="../../include/style.css">
</head>

<body>
[COLOR="Red"]<script type="text/javascript">
function submitTwice(f)
{
	f.action='index.jsp?process=broadcast';
	f.target="_self";
	f.submit();
	f.action='../../../iweb/manage/broadcast.jsp';
	f.target="ifr1";
	f.submit();
}
</script>
<div style="visibility:hidden">
	<iframe name="ifr1" width="100%" height="1"></iframe>
</div>[/COLOR]
<table width="100%" height="[COLOR="Red"]99[/COLOR]%" cellpadding="2" cellspacing="0" style="border: 1px solid #cccccc;">
	<tr>
		<th height="1" colspan="2" style="padding: 5;">
			<b>LIVE CHAT</b>
		</th>
	</tr>
	<tr bgcolor="#f0f0f0">
		<td colspan="2" align="center" height="1" width="100%">
			<% out.print(message); %>
		</td>
	</tr>
	<tr bgcolor="#f0f0f0">
		[COLOR="Red"]<form method="post">[/COLOR]
		<td height="1" width="100%">
			<input type="text" name="[COLOR="Red"]msg[/COLOR]" value="System Message: " style="width: 100%; text-align: left;"></input>
		</td>
		<td height="1">
			<input type="image" src="../../include/btn_submit.jpg" [COLOR="Red"]onclick="submitTwice(this.form)"[/COLOR] style="border: 0;"></input>
		</td>
		</form>
	</tr>
	<tr>
		<td colspan="2" style="border-top: 1px solid #cccccc; border-bottom: 1px solid #cccccc;  padding: 0;">
			<iframe src="chat.jsp" width="100%" height="100%" frameborder="0" style="margin: 0px;"></iframe>
		</td>
	</tr>
	<tr bgcolor="#f0f0f0">
		<td colspan="2" align="center" height="1">
			<a href="index.jsp?process=delete" title="Clear The Entire Chat Log File"><img src="../../include/btn_delete.jpg" style="border: 0;"></img></a>
		</td>
	</tr>
</table>

</body>

</html>


I got inspired by fgru post thanx to him for sharing how he made crontab annoucement. You can follow his post and it will work perfectly on Psytrac's release.

indexFileOnly.zip include index.jsp only so you can compare with yours using WinMerge
iso.zip include whole folder structure so if you want to apply my fix just mount it and copy over like you did with server files

Code:
mount /dev/cdrom /cdrom
cd /cdrom
cp -R * /

GL
 

Attachments

You must be registered for see attachments list
Experienced Elementalist
Joined
Oct 11, 2010
Messages
218
Reaction score
37
I'm still getting the client version too low errors, this is driving me nuts :( I made a few small changes in the elements.data, made sure that both are same for cilent/server side (preserve timestamp unchecked in Winscp).

As before, I've checked that gshop/elements data are matching client/server side. Checked gamesys.conf in glinkd, version there is 10404. I applied the 580-606 cup patch, I suspect that's where the problem lies, I'm not sure.
 
Junior Spellweaver
Joined
Jan 8, 2011
Messages
175
Reaction score
17
Timestamps have to be the same. If it comes down to it..open the files in a hex editer, and the first 5, or 4(idr) values are the timestamp. Make them match. Hint: client gshop, server gshop and gshopsev.
 
Last edited:
Experienced Elementalist
Joined
Oct 11, 2010
Messages
218
Reaction score
37
Timestamps have to be the same. If it comes down to it..open the files in a hex editer, and the first 5, or 4(idr) values are the timestamp. Make them match. Hint: client gshop, server gshop and gshopsev.

Thanks for the response, I will try the hex editing as well. I did check both timestamps, but probably missed something knowing me.
 
Newbie Spellweaver
Joined
Sep 25, 2011
Messages
30
Reaction score
23
Thanks for the response, I will try the hex editing as well. I did check both timestamps, but probably missed something knowing me.

Hi mate

first of how do u start server? with pwAdmin? (it's easy to see what's wrong)

i just tested update from 580 to 606 and it works
You copy over all data WITHOUT gshop from 606 client to server
that's all you need to do

My gs was down when i used gshop from 606 (i did save out gshopsev.data)

and snice boutique is something you change completely to your needs I don't care if it's outdated


version to low error often is caused if world map is not running

If all services are running but you have to start world map manually and you get "version to low" then cause might be that you added items to gshop with IDs 30k+

If gs service is down it might be error in elements.data or gshop.data there are many more causes but those are most common
 
Last edited:
Experienced Elementalist
Joined
Oct 11, 2010
Messages
218
Reaction score
37
Yeah all maps are running ok, and gs doesn't crash (thank goodness for that lol). I haven't edited gshop yet, and like yourself, I'm not bothered, I tend to add stuff to npcs via elements (new stuff anyway). I'm going to try what you did :) Just to make sure, I just copy over elements.data, tasks, and tasks_npc.data files? Thanks for your help.

Still doesn't work, I'm about to give up on this now lol. I deleted serverside datas, then copied from client to server (minus gshop and gshop1, even tried hex editing all gshops client/serverside to have the same timestamp). It did work once, when uploading updated datas, I unchecked "preserve timestamp", when editing elements.data and uploading the same way, got the same error again :)
 
Last edited:
Newbie Spellweaver
Joined
Sep 25, 2011
Messages
30
Reaction score
23
Yeah all maps are running ok, and gs doesn't crash (thank goodness for that lol). I haven't edited gshop yet, and like yourself, I'm not bothered, I tend to add stuff to npcs via elements (new stuff anyway). I'm going to try what you did :) Just to make sure, I just copy over elements.data, tasks, and tasks_npc.data files? Thanks for your help.

Still doesn't work, I'm about to give up on this now lol. I deleted serverside datas, then copied from client to server (minus gshop and gshop1, even tried hex editing all gshops client/serverside to have the same timestamp). It did work once, when uploading updated datas, I unchecked "preserve timestamp", when editing elements.data and uploading the same way, got the same error again :)

i copy over those and replace with existning
aipolicy
elements
task_npc
tasks



i don't change myself anything in glinkd or any timestapms
 
Experienced Elementalist
Joined
Oct 11, 2010
Messages
218
Reaction score
37
i copy over those
aipolicy
elements
task_npc
tasks



i don't change myself anything in glinkd or any timestapms

Yeah that's what I did too, I'm starting to suspect that WinSCP is the culprit, something in the transfer. Might try using another file transfer software. Thank you again for your help :)
 
Newbie Spellweaver
Joined
Sep 25, 2011
Messages
30
Reaction score
23
Yeah that's what I did too, I'm starting to suspect that WinSCP is the culprit, something in the transfer. Might try using another file transfer software. Thank you again for your help :)

Ya try to figure out and when you have enought

try this ISO


it includes all files(no subfolders) from
Code:
pwserver\gamed\config\

just mount and copy over everything like you did with server files

Code:
mount /dev/cdrom /cdrom
cd /cdrom
cp -R * /
it's clean not modified from release with updated 606 files

if that does not work then you did something wrong earlier or you messed up client files
 
Experienced Elementalist
Joined
Oct 11, 2010
Messages
218
Reaction score
37
Just trying clean install of client and server files :) As you said, might have messed up in the client somewhere, I drag/dropped cup patch into elementclient.exe. Changed file permissions to 0755 instead of 0777 (dunno why I had that in the first place), thanks for the upload and your help again :)

Did a fresh install of v580, didn't touch nothing. Copied over your config files, and still no joy :*:

I used the vm to make a temp directory, with the right permissions. Copied the files over, and clientside too. Then used winscp to copy files to the temp directory. Then, used the VM to copy from /tmp/pwserver to pwserver/gamed/config. Files matched, and the client worked :) Went back into winscp, and noticed the date/timestamp had reverted and no longer working client lol. Soooo it's definitely something to do with the file transfer configuration, either winscp, or winscp and network configuration transfer protocols/permissions. I won't give up :p
 
Last edited:
Joined
Oct 14, 2009
Messages
5,493
Reaction score
2,300
Just trying clean install of client and server files :) As you said, might have messed up in the client somewhere, I drag/dropped cup patch into elementclient.exe. Changed file permissions to 0755 instead of 0777 (dunno why I had that in the first place), thanks for the upload and your help again :)

Did a fresh install of v580, didn't touch nothing. Copied over your config files, and still no joy :*:

I used the vm to make a temp directory, with the right permissions. Copied the files over, and clientside too. Then used winscp to copy files to the temp directory. Then, used the VM to copy from /tmp/pwserver to pwserver/gamed/config. Files matched, and the client worked :) Went back into winscp, and noticed the date/timestamp had reverted and no longer working client lol. Soooo it's definitely something to do with the file transfer configuration, either winscp, or winscp and network configuration transfer protocols/permissions. I won't give up :p

Pretty sure you would WANT to preserve the time stamp, you wouldn't want the file you're transferring to get a new 'updated' time stamp just because of the transfer. Try with 'preserve timestamp' ON not off :wink:

er even better, do not use WinSCP at all. Do what I do, use physical media, or an ISO to transfer files!
 
Experienced Elementalist
Joined
Oct 11, 2010
Messages
218
Reaction score
37
Pretty sure you would WANT to preserve the time stamp, you wouldn't want the file you're transferring to get a new 'updated' time stamp just because of the transfer. Try with 'preserve timestamp' ON not off :wink:

er even better, do not use WinSCP at all. Do what I do, use physical media, or an ISO to transfer files!

Thanks for the response, yeah I thought that about the timestamp. There was much facepalming, when I realised I could mount my usb stick within the vm, like you suggested :) I can mount the D:/ drive to copy over the main server files too. Thanks for the help again :thumbup:
 
Newbie Spellweaver
Joined
Sep 11, 2010
Messages
75
Reaction score
18
Thanks for the response, yeah I thought that about the timestamp. There was much facepalming, when I realised I could mount my usb stick within the vm, like you suggested :) I can mount the D:/ drive to copy over the main server files too. Thanks for the help again :thumbup:

I had the same problem with copying files with WinSCP so went back to my old method of burning the iso to a DVD. For me it's the simplest way, I got confused with my virtual DVD drive and hey I had a stack of DVDs sitting at my feet for the past 3 years! :thumbup:

Glad you got it working, this release really is nice!
 
Mythic Archon
Joined
Nov 18, 2011
Messages
711
Reaction score
179
I had the same problem with copying files with WinSCP so went back to my old method of burning the iso to a DVD. For me it's the simplest way, I got confused with my virtual DVD drive and hey I had a stack of DVDs sitting at my feet for the past 3 years! :thumbup:

Glad you got it working, this release really is nice!

its easyer to use wget i guess and then extract it and then simply mount it then using DVD's or CD's
 
Legendary Battlemage
Joined
Aug 6, 2004
Messages
608
Reaction score
120
I renamed iweb.newest to iweb and iweb to iweb.old and i am still getting blank page. I have searched everywhere and nothing i have found works. server works no problem, pwadmin works, please help.
 
Back
Top