View previous topic :: View next topic |
Author |
Message |
admin Board Admin
Joined: 09 Jan 2002 Posts: 2938
|
Posted: Sun Jun 09, 2002 10:02 am Post subject: game extensions |
|
|
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 » |
|
|
RJSm1th 1st Lieutenant
Joined: 18 May 2002 Posts: 46 Location: Washington- USA
|
Posted: Sun Jun 09, 2002 10:10 pm Post subject: |
|
|
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 » |
|
|
admin Board Admin
Joined: 09 Jan 2002 Posts: 2938
|
Posted: Mon Jun 10, 2002 9:40 am Post subject: |
|
|
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 » |
|
|
admin Board Admin
Joined: 09 Jan 2002 Posts: 2938
|
Posted: Mon Jun 10, 2002 5:46 pm Post subject: |
|
|
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 » |
|
|
Bilerator 1st Rear Admiral
Joined: 10 Jan 2002 Posts: 203 Location: Germany
|
Posted: Wed Jun 12, 2002 3:19 pm Post subject: |
|
|
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 » |
|
|
admin Board Admin
Joined: 09 Jan 2002 Posts: 2938
|
Posted: Wed Jun 12, 2002 6:34 pm Post subject: |
|
|
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 » |
|
|
Bilerator 1st Rear Admiral
Joined: 10 Jan 2002 Posts: 203 Location: Germany
|
Posted: Wed Jun 12, 2002 6:42 pm Post subject: |
|
|
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 » |
|
|
admin Board Admin
Joined: 09 Jan 2002 Posts: 2938
|
Posted: Tue Jun 18, 2002 9:32 am Post subject: |
|
|
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 » |
|
|
peace of love 1st Rear Admiral
Joined: 13 Jan 2002 Posts: 306
|
Posted: Wed Jul 17, 2002 1:22 pm Post subject: |
|
|
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 » |
|
|
admin Board Admin
Joined: 09 Jan 2002 Posts: 2938
|
Posted: Thu Jul 18, 2002 4:13 pm Post subject: |
|
|
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 » |
|
|
admin Board Admin
Joined: 09 Jan 2002 Posts: 2938
|
Posted: Mon Jan 27, 2003 4:05 pm Post subject: |
|
|
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 » |
|
|
Captain Starlight Vice Admiral
Joined: 13 Sep 2002 Posts: 473 Location: Outer Space
|
Posted: Mon Jan 27, 2003 6:35 pm Post subject: |
|
|
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 » |
|
|
Captain Starlight Vice Admiral
Joined: 13 Sep 2002 Posts: 473 Location: Outer Space
|
Posted: Mon Jan 27, 2003 6:48 pm Post subject: |
|
|
Well, i tried, but no button so far
_________________ _________________________**** |
|
Back to top » |
|
|
admin Board Admin
Joined: 09 Jan 2002 Posts: 2938
|
Posted: Tue Jan 28, 2003 12:45 pm Post subject: |
|
|
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 » |
|
|
Captain Starlight Vice Admiral
Joined: 13 Sep 2002 Posts: 473 Location: Outer Space
|
Posted: Tue Jan 28, 2003 11:03 pm Post subject: |
|
|
ahh no thank you , I thought it was for everybody lol.No wonder I could not get it to work.
_________________ _________________________**** |
|
Back to top » |
|
|
BladeTech Admiral
Joined: 10 Feb 2003 Posts: 1591
|
Posted: Wed Feb 12, 2003 9:16 pm Post subject: |
|
|
@ admin: i heard ethoglow will help u with this. good luck with it. |
|
Back to top » |
|
|
admin Board Admin
Joined: 09 Jan 2002 Posts: 2938
|
Posted: Sun Jul 18, 2004 6:47 pm Post subject: |
|
|
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 » |
|
|
admin Board Admin
Joined: 09 Jan 2002 Posts: 2938
|
|
Back to top » |
|
|
Guest
|
Posted: Thu Aug 04, 2005 10:29 pm Post subject: |
|
|
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
Joined: 26 Aug 2003 Posts: 273 Location: Venezuela
|
Posted: Thu Aug 04, 2005 10:30 pm Post subject: |
|
|
that was me |
|
Back to top » |
|
|
|