Read Replay online

Advertise your levels, contests, sites etc.

Moderator: Moporators

teajay
Donator duck
Posts: 10043
Joined: 3 Apr 2003, 17:53

Re: Read Replay online

Post by teajay »

I got java error with that link +]
User avatar
Coco
Kuski
Posts: 205
Joined: 20 Jun 2005, 14:41
Location: Bretagne
Contact:

Re: Read Replay online

Post by Coco »

tijsjoris wrote:I got java error with that link +]
You have to get last version of Java Runtime Environment (Sun JRE) then applet have to be allowed by your browser (take a look to you browser perferences and security).
teajay
Donator duck
Posts: 10043
Joined: 3 Apr 2003, 17:53

Re: Read Replay online

Post by teajay »

oh heh, must be my ubuntu being flawed, sorry :*
nony
Kuski
Posts: 189
Joined: 11 Sep 2004, 22:09
Location: .ro

Re: Read Replay online

Post by nony »

besides a bump to this thread, maybe coco's here and will answer why some recs, as the one just posted today by xiph:http://mopolauta.moposite.com/viewtopic ... 23#p165323, will not work (i can see the bike moving, the apples, but no poly). and it's not the only situation...
anyway, great site/prog again!
User avatar
Coco
Kuski
Posts: 205
Joined: 20 Jun 2005, 14:41
Location: Bretagne
Contact:

Re: Read Replay online

Post by Coco »

as explained in a previous post of this topic, there are some levels for which i put textures into wrong order. only put texture mode off adding "&texture=off" into the url... i have to find right texture using for each vertex (haven't found it into file.lev) but currently not enough time for it :cry:

Edit : internal levels 39, 41, 48 and 53 are concerned
nony
Kuski
Posts: 189
Joined: 11 Sep 2004, 22:09
Location: .ro

Re: Read Replay online

Post by nony »

please advice, i don't know how to add &texture=off. show url or example or something...
User avatar
Coco
Kuski
Posts: 205
Joined: 20 Jun 2005, 14:41
Location: Bretagne
Contact:

Re: Read Replay online

Post by Coco »

nony wrote:please advice, i don't know how to add &texture=off. show url or example or something...
Lets try each url to see the difference :

http://trouvedec.free.fr/runreplay.php? ... /ced10.rec
http://trouvedec.free.fr/runreplay.php? ... exture=off

So, I think next url allows you to launch applet with the mode you are searching for :
http://trouvedec.free.fr/runreplay.php?texture=off
User avatar
Maska
Kuski
Posts: 73
Joined: 1 Feb 2004, 14:41
Location: Russia, Saint-Petersburg
Contact:

Re: Read Replay online

Post by Maska »

Coco, plz make more correct support old parameters "width" and "height". I think bike must be on center, but not on bottom.
For example see: http://club.elastomania.ru/rus/stuff/re ... n/?id=1847
Image
Image
Image
Image || 45:36,07
User avatar
Coco
Kuski
Posts: 205
Joined: 20 Jun 2005, 14:41
Location: Bretagne
Contact:

Re: Read Replay online

Post by Coco »

working on it... i have some trouble with replay auto-launch (a square of 10pix by 10pix displayed, I don't know why...)

but you can add 2 parameters between applet tags :

Code: Select all

<APPLET code="RunReplay.class" archive="RunReplay.jar" alt="Run Replay Online" WIDTH=339 HEIGHT=236 ALIGN=middle>
    <PARAM NAME="mapw" VALUE="300">
    <PARAM NAME="maph" VALUE="200">
    Error
   </APPLET>
with mapw = applet width - 39 and maph = applet height - 36...

besides, if replay given in url, textfields for replay, level and zoom are hidden.
User avatar
Coco
Kuski
Posts: 205
Joined: 20 Jun 2005, 14:41
Location: Bretagne
Contact:

Re: Read Replay online

Post by Coco »

Maska wrote:Coco, plz make more correct support old parameters "width" and "height". I think bike must be on center, but not on bottom.
For example see: http://club.elastomania.ru/rus/stuff/re ... n/?id=1847
It work fine now 8)

1) map size based on heigth and width of applet tag (maph and mapw no more needed)
2) bug of auto-launching corrected
3) for the 4 internals where textureMode doesn't work, I forced the no texture mode

So, the only trouble is about java VM heap size memory => if your applet size is too high and/or the level too big and/or the zoom used to small, nothing will append and into the JVM console, you'll see a "outOfMemory" error but all internals should work fine for you :D

For people who want to add the applet in their website :

Code: Select all

<APPLET code="RunReplay.class" archive="http://trouvedec.free.fr/RunReplay.jar" alt="Run Replay Online" WIDTH=339 HEIGHT=236 ALIGN=middle>
     Error
</APPLET>
you can choose your own width and height values into the applet tag.

you also can download http://trouvedec.free.fr/RunReplay.jar then upload it to your wab site then only put archive="RunReplay.jar", to become independant of free.fr but you'll need to do it each time a new version will be made (not really often).

Please, lets tell me (give me url by PM to allow me enjoying your work) who use it to know if it is a usefull work.

Enjoy it.
User avatar
Kopaka
39mins club
Posts: 6611
Joined: 23 May 2002, 13:59
Team: LAME
Location: In a northern danish city beating YOUR record.
Contact:

Re: Read Replay online

Post by Kopaka »

Great work coco, some nice fixes.

Dunno if you know but it's running on the elma online site, where you can see battle winning replays with it, for example http://elmaonline.moposite.com/?s=replayonline&b=406
User avatar
Coco
Kuski
Posts: 205
Joined: 20 Jun 2005, 14:41
Location: Bretagne
Contact:

Re: Read Replay online

Post by Coco »

Kopaka wrote:Dunno if you know but it's running on the elma online site, where you can see battle winning replays with it, for example http://elmaonline.moposite.com/?s=replayonline&b=406
didn't know :?

summary :

parameters :
level=<url of the external level (is it is internal, not needed)>
replay=<url of the 1st replay>
replay2=<url of the 2nd replay>
...
replay10=<url of the 10th replay>
zoom=<integer value (default value=20)>
texture=<on/off>

running :
if a replay is given through the url,
it is launched automatically and replay + level + zoom textfields are hidden
else
you can select a local file or write a url for replay + level textfields and zoom textfield is initialized with 20.0

if several replays given, they are merged... no control made on replays given so possible to watch funny things even crash the applet if you give bad replay
User avatar
Coco
Kuski
Posts: 205
Joined: 20 Jun 2005, 14:41
Location: Bretagne
Contact:

Re: Read Replay online

Post by Coco »

I think I fixed bug concerning texture for some levels. now all internals must be well displayed
User avatar
Coco
Kuski
Posts: 205
Joined: 20 Jun 2005, 14:41
Location: Bretagne
Contact:

Re: Read Replay online

Post by Coco »

Added 2 parameters to allow you to show only a part of a replay :
start=<number of the frame>
end=<number of the frame>

exemple : there is 30 frames per second, so to show a replay between second 5 and second 15, you have to set "start=150" (5*30) and "end=450" (15*30)
User avatar
Mawane
Kuski
Posts: 3299
Joined: 15 Apr 2007, 01:05
Team: SV
Contact:

Re: Read Replay online

Post by Mawane »

Code: Select all

ulaanaa dit (10:41) :
where is show to friend url?
Mawane dit (10:41) :
u must edite the url
ulaanaa dit (10:41) :
where is url editor?
lolll

btw, would be nice to create url
and adding "Replay 2, 3, etc..."
Website || TT:41:45:64 || Team Image
Image[url=steam://friends/add/76561198025490048]Image[/url]
User avatar
Coco
Kuski
Posts: 205
Joined: 20 Jun 2005, 14:41
Location: Bretagne
Contact:

Re: Read Replay online

Post by Coco »

Mawane wrote:btw, would be nice to create url
and adding "Replay 2, 3, etc..."
1) create url !? I don't understand :oops:
2) adding input for replays 2,3,... would make the map displaying the replay too tiny and would not concerne enought people to do that. url is the only alternative... :?

Added 3 parameters (but quite difficult to find x and y) :
fixedcamera=on/off
fixedx=<integer>
fiwedy=<integer>
User avatar
Mawane
Kuski
Posts: 3299
Joined: 15 Apr 2007, 01:05
Team: SV
Contact:

Re: Read Replay online

Post by Mawane »

Coco wrote:
Mawane wrote:btw, would be nice to create url
and adding "Replay 2, 3, etc..."
1) create url !? I don't understand :oops:
2) adding input for replays 2,3,... would make the map displaying the replay too tiny and would not concerne enought people to do that. url is the only alternative... :?

Added 3 parameters (but quite difficult to find x and y) :
fixedcamera=on/off
fixedx=<integer>
fiwedy=<integer>
we shouldnt need to edit the url by ourself, it should be accessible even to noobs that cant do it
when selecting replay and lev, url stay the same after clicking start. idea would be to generate automaticly something like this after uploading them:
http://trouvedec.free.fr/runreplay?replay=http://mopolauta.moposite.com/download/file.php?id=327&replay2=http://mopolauta.moposite.com/download/file.php?id=328&level=http://mopolauta.moposite.com/download/file.php?id=326

and for that replay2, 3, etc maybe you could hide it but possibility to show for uploading, no? too much work?
Website || TT:41:45:64 || Team Image
Image[url=steam://friends/add/76561198025490048]Image[/url]
User avatar
milagros
Cheatless
Posts: 4560
Joined: 19 May 2002, 17:05

Re: Read Replay online

Post by milagros »

there is prolly some bug with apple indexing
if you open markku's mawpi239 rec (in the challenge topic), apples disappear in the wrong order
[carebox]
User avatar
Coco
Kuski
Posts: 205
Joined: 20 Jun 2005, 14:41
Location: Bretagne
Contact:

Re: Read Replay online

Post by Coco »

thanks for feedback, milagros

totem told me about when he was writing his "run replay offline" and gave me the solution.
I will correct it soon.
User avatar
Mawane
Kuski
Posts: 3299
Joined: 15 Apr 2007, 01:05
Team: SV
Contact:

Re: Read Replay online

Post by Mawane »

why this doesnt work for me here at school?

Code: Select all

http://trouvedec.free.fr/runreplay?replay=http://mawcup.sshoyer.net/dlrec.php?rec=57&e=1level=http://mawcup.sshoyer.net/dllev.php?lev=1
Website || TT:41:45:64 || Team Image
Image[url=steam://friends/add/76561198025490048]Image[/url]
User avatar
FinMan
36mins club
Posts: 2038
Joined: 13 Feb 2007, 11:14
Team: dat
Location: Jyväskylä, Finland

Re: Read Replay online

Post by FinMan »

Edit: its not a link to level, Mawane, its just a download link.
Image
User avatar
The_BoneLESS
38mins club
Posts: 4604
Joined: 7 Sep 2003, 00:30
Team: HHIT
Location: Dangerously close to the St-Lawrence River
Contact:

Re: Read Replay online

Post by The_BoneLESS »

Instead of linking to the level/replay file, you are linking to a script which obtains the level/replay file once executed. Not the same thing.
Website || TT:38:05:33 || WC5:15th || HHIT for life || 9th world wide ... BAP is next
User avatar
Mawane
Kuski
Posts: 3299
Joined: 15 Apr 2007, 01:05
Team: SV
Contact:

Re: Read Replay online

Post by Mawane »

ah, so with php, there's no way to get it unless i upload somewhere else...
Website || TT:41:45:64 || Team Image
Image[url=steam://friends/add/76561198025490048]Image[/url]
User avatar
Coco
Kuski
Posts: 205
Joined: 20 Jun 2005, 14:41
Location: Bretagne
Contact:

Re: Read Replay online

Post by Coco »

milagros wrote:there is prolly some bug with apple indexing
if you open markku's mawpi239 rec (in the challenge topic), apples disappear in the wrong order
Corrected
Mawane wrote:why this doesnt work for me here at school?
Why don't you build in my applet to you web site ? with direct link to the replay files (could solve something about your problem).
User avatar
Kopaka
39mins club
Posts: 6611
Joined: 23 May 2002, 13:59
Team: LAME
Location: In a northern danish city beating YOUR record.
Contact:

Re: Read Replay online

Post by Kopaka »

Mawane wrote:ah, so with php, there's no way to get it unless i upload somewhere else...
you have to create the lev/rec files from the binary data in the db, place them somewhere on the server and link to those files
User avatar
Coco
Kuski
Posts: 205
Joined: 20 Jun 2005, 14:41
Location: Bretagne
Contact:

Re: Read Replay online

Post by Coco »

Updated applet to support multi-replays (screen splited).

If you add several single-replays (thanks to parameters replay, replay2, ..., replay10), screen will also be splited.

http://trouvedec.free.fr/runreplay.php? ... ec&zoom=30
User avatar
Kopaka
39mins club
Posts: 6611
Joined: 23 May 2002, 13:59
Team: LAME
Location: In a northern danish city beating YOUR record.
Contact:

Re: Read Replay online

Post by Kopaka »

that's awesome, good job! (:
User avatar
Mawane
Kuski
Posts: 3299
Joined: 15 Apr 2007, 01:05
Team: SV
Contact:

Re: Read Replay online

Post by Mawane »

Website || TT:41:45:64 || Team Image
Image[url=steam://friends/add/76561198025490048]Image[/url]
User avatar
Coco
Kuski
Posts: 205
Joined: 20 Jun 2005, 14:41
Location: Bretagne
Contact:

Re: Read Replay online

Post by Coco »

Corrected a bug in multi replays.
Mawane wrote:apple disapearing bug here:
http://elmaonline.moposite.com/?s=replayonline&b=1379
Tried with the last version, no problem. You should update RunReplay.jar http://trouvedec.free.fr/RunReplay.jar
Post Reply