Recent topics Log in
Search Profile
Memberlist Usergroups
Log in to check your private messages
Register
game extensions
Goto page 1, 2  Next

Post new topic   Reply to topic
SpaceTrace Forum Forum Index » General Discussion » game extensions
View previous topic :: View next topic  
Author Message
admin
Board Admin
Board Admin


Joined: 09 Jan 2002
Posts: 2938

 Post Posted: Sun Jun 09, 2002 10:02 am    Post subject: game extensions
Reply with quote

this is about the new game extensions explained in the "ยป new ships and game updates"

here is also an example script for the production screen:
box_example_for_production.js
in
http://www.spacetrace.org/javascripts/

any questions or suggestions - just ask

if you need any code added to our scripts to get access to data in the pages - no problem


Last edited by admin on Sun Mar 19, 2006 11:06 am; edited 2 times in total
 Back to top »
View user's profile Send private message
RJSm1th
1st Lieutenant
1st Lieutenant


Joined: 18 May 2002
Posts: 46
Location: Washington- USA

 Post Posted: Sun Jun 09, 2002 10:10 pm    Post subject:
Reply with quote

Scripts, great this makes no sence to me sorry, I dont know how to create scripts nor how to use them (I think)are there any sample scripts made already and are instructions included on how to link them and then use them?

possibly a web page with a descripton of its purpose and the appropriate script. authors comments on possible modifications and how they may be modified?

Am I alone in this not having a clue? I work with computer hardware day in and day out at my job but the prog has me beat.
 Back to top »
View user's profile Send private message
admin
Board Admin
Board Admin


Joined: 09 Jan 2002
Posts: 2938

 Post Posted: Mon Jun 10, 2002 9:40 am    Post subject:
Reply with quote

the script is a simple javascript

just
1. download the example
http://www.spacetrace.org/javascripts/box_example_for_production.js
into your spacetrace dir you selected in your preferences (the same dir like the sound - dir)
2. look at your production screen at the bottom.

there is no disadvantage, if you dont know how to change javascript.
i only made this, to give some advanced programmers access to addd their ideas.

if you programmed some useful scripts please mail them to <!-- BBcode auto-mailto start --><script language="JavaScript" type="text/javascript"> document.write('<a href="mailto:admin@'+'spacetrace.org">admin@'+'spacetrace.org</a>'); </script><noscript><a href="mailto:REMOVEadmin@spacetrace.orgME">REMOVEadmin@spacetrace.orgME</a></noscript><!-- BBCode auto-mailto end -->
we will offer them for download then
and maybe include them to the game, if they are really useful for everyone.


<font size=-1>[ This Message was edited by: admin on 2002-06-13 11:52 ]</font>


Last edited by admin on Sun Mar 19, 2006 11:07 am; edited 1 time in total
 Back to top »
View user's profile Send private message
admin
Board Admin
Board Admin


Joined: 09 Jan 2002
Posts: 2938

 Post Posted: Mon Jun 10, 2002 5:46 pm    Post subject:
Reply with quote

i added a javascript for download at

http://www.spacetrace.org/javascripts/index.js

if you download this script, you can store your username and password in there and log in automatically when you enter the start-screen

it also opens two extra windows, where you can vote for spacetrace everytime you log in


Last edited by admin on Sun Mar 19, 2006 11:08 am; edited 1 time in total
 Back to top »
View user's profile Send private message
Bilerator
1st Rear Admiral
1st Rear Admiral


Joined: 10 Jan 2002
Posts: 203
Location: Germany

 Post Posted: Wed Jun 12, 2002 3:19 pm    Post subject:
Reply with quote

how is the dir defined ??

i have put in E:eigene dateienspacetrace in there, and have put the js in it, but nothing happens
 Back to top »
View user's profile Send private message ICQ Number
admin
Board Admin
Board Admin


Joined: 09 Jan 2002
Posts: 2938

 Post Posted: Wed Jun 12, 2002 6:34 pm    Post subject:
Reply with quote

the index script only works, if you define your spacetrace-dir as "file://C:\games\spacetrace\"
because this is the default directory, if you are still not logged in.
but all the other scripts work in all subdirectorys, but dont use "eigene dateien"
because this has a space in the name (spaces have to be replaced wit '%20' in the path,
and the path is case-sensitive so maybe this works: "file://E:\Eigene Dateien\spacetrace\"


Last edited by admin on Sun Mar 19, 2006 7:29 pm; edited 3 times in total
 Back to top »
View user's profile Send private message
Bilerator
1st Rear Admiral
1st Rear Admiral


Joined: 10 Jan 2002
Posts: 203
Location: Germany

 Post Posted: Wed Jun 12, 2002 6:42 pm    Post subject:
Reply with quote

okay, thx, it works now, but I haven't realized yet what I can do with it ... I don't know JS yet, but if you tell me that I can make lovely things with it, I will learn it =D
 Back to top »
View user's profile Send private message ICQ Number
admin
Board Admin
Board Admin


Joined: 09 Jan 2002
Posts: 2938

 Post Posted: Tue Jun 18, 2002 9:32 am    Post subject:
Reply with quote

just edit the JS-script with a text-editor like Notepad and fit it to your needs

for example in the index.js script, just enter your username and password and put it in the reight directory, then it works for you
 Back to top »
View user's profile Send private message
peace of love
1st Rear Admiral
1st Rear Admiral


Joined: 13 Jan 2002
Posts: 306

 Post Posted: Wed Jul 17, 2002 1:22 pm    Post subject:
Reply with quote

cant those extension not be implemented in a screen of s.t. i dont have the nerves to "programm" my s.t. ...

 Back to top »
View user's profile Send private message
admin
Board Admin
Board Admin


Joined: 09 Jan 2002
Posts: 2938

 Post Posted: Thu Jul 18, 2002 4:13 pm    Post subject:
Reply with quote

i guess you dont have the nerves to wait ages until the fleets screen is loaded either.

i try to make the fleets screen as small as possible, cause this screen causes the most traffic on the server.
and downloading and change a small text-file is not really "programming"

this game extension option makes it possible for everyone to join us programming the game, so and if there are good ones, we certainly WILL implement them directly into the game.
 Back to top »
View user's profile Send private message
admin
Board Admin
Board Admin


Joined: 09 Jan 2002
Posts: 2938

 Post Posted: Mon Jan 27, 2003 4:05 pm    Post subject:
Reply with quote

now it is possible for you to program a battlevisualization of any kind:

in http://www.spacetrace.org/javascripts/ you can download a battlereport.js javascript, that adds a button to your battlereport screen.

look at the source code of that script for more details
 Back to top »
View user's profile Send private message
Captain Starlight
Vice Admiral
Vice Admiral


Joined: 13 Sep 2002
Posts: 473
Location: Outer Space

 Post Posted: Mon Jan 27, 2003 6:35 pm    Post subject:
Reply with quote

From the source code
Quote:
var coordslayer;
var selgo=0;

//////////////////////////////////////////////////////////////////
// here you can set the link to your visualisationscript (locallink)
//
// for example:
var locallink="http://spacetrace.org/battlevisualization/index.php";
//
// the sourcecode of the battlereport will be sent to this specified script
// you can program for example a php-script, that cuts out the right pieces
// of the bat



Where exactly is here??? In the brackets saying (local link) Or should you cut out the entire line??
_________________
_________________________****

[ This Message was edited by: Captain Starlight on 2003-01-27 18:38 ]
 Back to top »
View user's profile Send private message
Captain Starlight
Vice Admiral
Vice Admiral


Joined: 13 Sep 2002
Posts: 473
Location: Outer Space

 Post Posted: Mon Jan 27, 2003 6:48 pm    Post subject:
Reply with quote

Well, i tried, but no button so far

_________________
_________________________****
 Back to top »
View user's profile Send private message
admin
Board Admin
Board Admin


Joined: 09 Jan 2002
Posts: 2938

 Post Posted: Tue Jan 28, 2003 12:45 pm    Post subject:
Reply with quote

once you downloaded the script into your spacetracedirectory (you can set it in your preferences) there will be a button in your battlereport windew, but only after you pressed on the link to show the full report.

and remember:
this whole javascript-extensions only work in internet explorer

this way you can start programming the battle visualisation. (you need knowledge in some script-languages to do that)

it is the interface for you to get access to the sourcecode of the battlereport.

it is of no use for players who are not working on the project to program a battlevisualisation

@Cap: do you want to give it a try ?

[ This Message was edited by: admin on 2003-01-28 12:45 ]
 Back to top »
View user's profile Send private message
Captain Starlight
Vice Admiral
Vice Admiral


Joined: 13 Sep 2002
Posts: 473
Location: Outer Space

 Post Posted: Tue Jan 28, 2003 11:03 pm    Post subject:
Reply with quote

ahh no thank you , I thought it was for everybody lol.No wonder I could not get it to work.

_________________
_________________________****
 Back to top »
View user's profile Send private message
BladeTech
Admiral
Admiral


Joined: 10 Feb 2003
Posts: 1591

 Post Posted: Wed Feb 12, 2003 9:16 pm    Post subject:
Reply with quote

@ admin: i heard ethoglow will help u with this. good luck with it.
 Back to top »
View user's profile Send private message Send e-mail AIM Address
admin
Board Admin
Board Admin


Joined: 09 Jan 2002
Posts: 2938

 Post Posted: Sun Jul 18, 2004 6:47 pm    Post subject:
Reply with quote

it would be interesting, if anyone programmed any more game extensions already.

you know, it is possible for everyone to add his own javascript to his gamepath and it will be included in the page (in internet explorer)
 Back to top »
View user's profile Send private message
admin
Board Admin
Board Admin


Joined: 09 Jan 2002
Posts: 2938

 Post Posted: Thu Jul 28, 2005 12:25 pm    Post subject:
Reply with quote

you can also add extensions to the 3d-map:
http://www.spacetrace.com/forum/viewtopic.php?p=44418
 Back to top »
View user's profile Send private message
Guest






 Post Posted: Thu Aug 04, 2005 10:29 pm    Post subject:
Reply with quote

well, i tryed all what you said above about directory and there still doesnt apear any buttom in the battelreport page. My sounds are not working and no changes have happend in any window
 Back to top »
Liderant
1st Rear Admiral
1st Rear Admiral


Joined: 26 Aug 2003
Posts: 273
Location: Venezuela

 Post Posted: Thu Aug 04, 2005 10:30 pm    Post subject:

that was me
 Back to top »
View user's profile Send private message Send e-mail
Display posts from previous:   
SpaceTrace Forum Forum Index » General Discussion » game extensions
Post new topic   Reply to topic All times are GMT + 1 Hour
Goto page 1, 2  Next

Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Solaris phpBB theme/template by Jakob Persson
Copyright © Jakob Persson 2003



Powered by phpBB © 2001, 2002 phpBB Group

Impressum