/    Sign up×
Community /Pin to ProfileBookmark

Help with game code.

I am trying to make an mmorpg(similar to cybots) in javascript. Kinda weird choice of a language for something like this I know, but I should be able to pull it off, however I am having some trouble with it. It uses cookies to store information, and probably post or something for the multi-player part. however after redoing the cookie scripts now all sorts of errors popup and I can’t get rid of them.
[URL=http://kgemods.com/code.htm]Here is the code.[/URL]

Well thats all for now as I got to go, I’ll put up the rest when I get back.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@On_fireauthorApr 07.2004 — Ok, I think most of the code is there. Pardon the comment's spelling and grammar, I was trying to hurry and get them done. (That and it is 2:55 am here.) I know alot of functions are probably set up wrong, but I have never taken a course(Online or otherwise.) or anything for javascript, so I have very little idea what the heck I am doing, however the best way to learn is to get out there get your hands dirty and ask someone else about what ever you can't figure out.
Copy linkTweet thisAlerts:
@On_fireauthorApr 07.2004 — Ok now that i've had some time to debug this thing, there are errors on lines:

8 in home.htm:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>

<title>Home</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script type="text/javascript" src="cookies.js"></script>

<script language="JavaScript" type="text/JavaScript">

var name = getVar("stats", "[0]")

document.write("Hello ");

document.write(name);

document.write(", Welcome to <em>The Great War</em>.");

</script>

</head>

hmm the problem is probably in the getVar function:

function getVar(array, value)

{

jarray = getCookie(array)

var decodecook = array.split(";")

var getVal = (array, value);

return getVal;

}

line 8 in battle.htm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>

<title>Untitled Document</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script type="text/javascript" src="cookies.js"></script>

<script language="JavaScript" type="text/JavaScript">

battlewrite()

</script>

</head>

<body bgcolor="#000000" text="#FFFFFF" link="#0000FF">

</body>

</html>

That's what I can see for now. No doubt others will show up.
×

Success!

Help @On_fire spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...