4x4 Evolution Track Script Info

General Dreamcast discussion applies here. Before posting here please check the other forums in the Dreamcast section to see if your topic would fit better in those categories.

Moderator: mazonemayu

Forum rules
Please check the other forums in the Dreamcast section before posting here to see if your topic would fit better in those categories. Example: A new game/homebrew release would go in the New Releases/Homebrew/Emulation section: http://dreamcast-talk.com/forum/viewforum.php?f=5 or if you're having an issue with getting your Dreamcast to work or a game to boot it would go in the Support section: http://dreamcast-talk.com/forum/viewforum.php?f=42
FuzzyFish
dark night
Posts: 60

4x4 Evolution Track Script Info

Post#1 » Thu Jan 22, 2015 1:31 pm

Finally took the time to figure out how track queries work. Still have a bit to figure out, and I don't know how to write a query script to generate a reply. But this is the end result in hopes someone can do something useful. All comments are denoted with //

I don't have the time to write the script for it anytime soon, but this is all the information needed to fix the track query function so ya'll can easily download tracks. If someone does take the time for fixing it, I can provide the hosting if needed for it.

Code: Select all

4x4 Evolution Track Query Script/Response Breakdown

INPUT:

Example:
www.4x4evolution.com/test.txt?ver=2&lang=english&plat=Intel&first=0&count=19&name=TrackName&author=AuthorName&content=p&sort=filename"

TrackQueryURL:
www.4x4evolution.com/test.txt
This address is defined in the backend.txt stored on 4x4evolution & dreamcast-talk.com.

Version:
?ver=2
Version number, no information as to what it did

Language:
&lang=english
Language, it appears to always be English with no other options.

Platform:
&plat=Intel
Type of machine you are running. (Intel = PC, Mac, Dreamcast, PX2 = PS2 (Unused), XBox (Unused))

First Result to show:
&first=0
Used for page views, a higher number will show other results

Total to show:
&count = 19
Determined by screen resolution, DC = 7, absolute maximum of 25

Track name:
&name=<TRACKNAME HERE>
Likely search for a string somewhere inside a track name

Author name:
&author=<AUTHORNAME HERE>
Likely search for a string somewhere inside an authors name

Content
&content=p
Type of track p = POD file (Dreamcast can not use POD files), l = LTE file

Sort Type:
&sort=name
Type of sorting for the query. (filename, name, smallest, largest, mostDownloads, newest)


OUTPUT: (This is returned after the query)

EXAMPLE:
--PAK_CHOOIE_UNF--
0
1
STARTMU
www.4x4evolution.com/tracks/Evo1LTE/[RCG]CrazyOffroad.LTE
[RCG]Crazy Offroad
TEST DESCRIPTION
TEST AUTHOR
38263
1
L
1999-09-09
0
--GRABUALSA--


Breakdown:
--PAK_CHOOIE_UNF--         // Command start the start reading the query
0                     // First result, used for other pages
1                     // Amount of results to show (Limited by screen resolution
STARTMU                  // Command to return read a result, THIS IS DONE BEFORE EACH LISTING
www.4x4evolution.com/tracks/Evo1LTE/[RCG]CrazyOffroad.LTE      // Full download URL of the track
[RCG]Crazy Offroad         // Name of the track
TEST DESCRIPTION         // Description of the track
TEST AUTHOR               // Author of the track
38263                  // Size of the file to download
1                     // Race mode? (Doesn't seem to be used here)
L                     // Track file type L = LTE (Dreamcast/PC), P = POD (PC Only)
1999-09-09                // Date YYYY-MM-DD format
0                     // Total downloads
--GRABUALSA--            // Command to end the query without error, use STARTMU to add another result
4x4 Evolution Revival Project
http://www.4x4evolution.net

mrneo240
Nemesis
Posts: 632

Re: 4x4 Evolution Track Script Info

Post#2 » Tue Sep 26, 2017 2:31 am

Did someone write this? If not I'll throw one together

User avatar
Bob Dobbs
Sub Genius
Posts: 3845
Contact:

Re: 4x4 Evolution Track Script Info

Post#3 » Tue Sep 26, 2017 10:28 pm

Not that I know of. It's been an adventure getting the game to download tracks as well as the other.
Regards,
Bob Dobbs

User avatar
The-Amazing-Mr_V
Metallic
Posts: 811

Re: 4x4 Evolution Track Script Info

Post#4 » Tue Sep 26, 2017 10:42 pm

It would be amazing to be able to easily download other tracks.

User avatar
Xiden
Leonard Nimoy
Posts: 1819

Re: 4x4 Evolution Track Script Info

Post#5 » Tue Sep 26, 2017 10:55 pm

might fwd it for shu to take a glance at once he is freed up

User avatar
deluxux
Metallic
Posts: 833

Re: 4x4 Evolution Track Script Info

Post#6 » Wed Apr 22, 2020 4:03 pm

Anyone able to fix the 4x4 Downloader? Is this code for the server or in game?

User avatar
Xiden
Leonard Nimoy
Posts: 1819

Re: 4x4 Evolution Track Script Info

Post#7 » Wed Apr 22, 2020 6:57 pm

deluxux wrote:Anyone able to fix the 4x4 Downloader? Is this code for the server or in game?


Currently you can manually enter the address you wish to download tracks from

More info here:

https://www.dreamcastlive.net/4x4-evo-tracks

The other in game methods aren't available yet though

User avatar
megavolt85
Developer
Posts: 715

Re: 4x4 Evolution Track Script Info

Post#8 » Thu Apr 23, 2020 4:33 am

deluxux wrote:Is this code for the server or in game?


for server

request string

Code: Select all

http://paste.anyurl.org:80/cgi-bin/trackquery.pl?ver=1&lang=english&plat=Dreamcast&first=0&count=6&content=l&sort=mostDownloads


game send request to perl script on server

User avatar
megavolt85
Developer
Posts: 715

Re: 4x4 Evolution Track Script Info

Post#9 » Thu Apr 23, 2020 10:52 am

Xiden wrote:Currently you can manually enter the address you wish to download tracks from

More info here:

https://www.dreamcastlive.net/4x4-evo-tracks

The other in game methods aren't available yet though


afterdark.lte and goblin.lte not found on server

User avatar
pcwzrd13
Seen Any Sailors?
Posts: 6146
Contact:

Re: 4x4 Evolution Track Script Info

Post#10 » Thu Apr 23, 2020 11:08 am

deluxux wrote:Anyone able to fix the 4x4 Downloader? Is this code for the server or in game?


The track downloads did work a few years ago but then they just stopped. Not sure what changed.

megavolt85 wrote:afterdark.lte and goblin.lte not found on server


Woops. Looks like I had the file names wrong. Fixed!
PSO Characters:
Teal'c - lvl 119 HUcast - GC# 11666
Alto - lvl 39 FOnewm - GC# 12964

YouTube Channel : Dreamcast Live

  • Similar Topics
    Replies
    Views
    Last post

Return to “Lounge”

Who is online

Users browsing this forum: No registered users