RASP 2.1.4 for ASECO 1.2

This is the place where you can find everything related to the dedicated server, control scripts and community tools.

Moderators: Pit Crew, TM-Patrol

Post Reply
Assembler Maniac
Pit Crew
Pit Crew
Posts: 1493
Joined: 03 Jun 2006 13:24
Owned TM-games: TMU
Contact:

RASP 2.1.4 for ASECO 1.2

Post by Assembler Maniac » 26 Jun 2007 16:45

Released!

Download it here

Only works with ASECO v1.2 or above.

2.1.4 (thanks to jaypsi for the fixes)
  • fix - rasp_ms - '\\matchsettings' should have been '/matchsettings' so the onSync code can change it to work on Windows
  • fix - rasp - prevent invalid object error on aseco restart trying to update personal best window
  • fix - rasp_jukebox - /nextmap shows info again
  • fix - rasp_jukebox - if 2 or more tracks were added with /add, only the last one was correctly removed from tracklist, now all of them should be removed as originally planned
  • fix - rasp_chat - if you try to /msg a person, you'll get an error if you screw up their name, instead of a blind send with no error check
2.1.3
  • new - "/admin endround" command added, forces end of round when in rounds mode and someone doesn't end their round (probably because they are AFK)
  • fix - "/admin cancelvote" now displays the proper message to the chat window
  • fix - "/admin add" no longer gives an error msg about invalid login when sending an error to user that track id is bad
  • fix - "/admin erase/remove" no longer gives an error msg about invalid login when telling user to use "/list" first
  • Change - Changed all calls to stop using multi-query mode for messages and just do them as needed. This fixes the phantom track change call loop (i hope).
2.1.1 fix - /admin add doesn't crash anymore (missing a > char on line 631 of jukebox)

2.1.0 changes/fixes
  • personal best updated when you get a new one, same for other players getting new rec
  • new - /admin loadms - load a new matchsettings file from a list
  • new - ShowNext - shows next track info (including mode) between tracks
  • fix - pb/rec don't vanish and refuse to return if a track is restarted
  • too many other tweaks and changes to count, see readme.txt for info
2.0.1 changes/fixes
  • fix - rasp doesn't cause aseco to crash when in rounds mode
  • fix - cptimes handles rounds correctly now (as does rasp ranking)
  • fix - /admin chat "text here" no longer requires $admin_list to be public (no need to change stuff in aseco.php)
  • change - commands don't trigger the chatbot anymore
  • new - /msg admin "your message here" will send a private message to anyone logged in who is an admin
  • fix - missing /admin remove and /admin erase have been put back in (got lost in the conversion)
  • fix - /admin add no longer crashes the server, also displays env of track just added
Modules/Functions/Commands Available

plugin.rasp.php - Computes/maintains player rankings for the server

PB & Track Best Time are shown below the # of players at beginning of a track, if you get a new PB, it will update the display
  • pb - show your personal best for current track
  • raspver - show version of PHP, MySQL and RASP
  • top5 - show top five ranked players on server (rasp rank, not nadeo rank)
  • rank - show player their ranks
  • seen ????? - show last date time that players, with whole/partial match on login, were on the server
  • admin cancelvote - cancel the vote in progress
plugin.rasp_jukebox.php - Allow for requesting a track to be next, downloading new tracks from TMX by admin or regular players (with vote). Track list allows for click on track to add to jukebox. Track that is stuck in jukebox for maxjbtries (jukebox.xml) will be automatically removed from jukebox.
  • jukebox ## - add track to jukebox by number (pretty much obesolete because clicking on the track on the list does the same thing)
  • jukebox list - show what tracks are currently in the jukebox
  • list {env:alpine/bay/coast/island/speed/stadium/rally} search_text - search for a track by environment and/or track/author name
  • add #### TMO/TMS/TMN/TMU (TMU is default) - add a track from TMX by track id, vote percentage can be changed in jukebox.xml
  • y - vote yes for a track
  • addcancel - cancel a TMX vote that you started (in case it's the wrong track from TMX)
  • admin addcancel - cancel a TMX vote that has been started
  • admin writetracklist {filename} - write the current tracklist to the named file. jukebox.xml can be edited to change the default filename.
  • admin add #### TMO/TMS/TMN/TMU (TMU is default) - add a track from TXM by track id, will not be next in rotation unless
  • admin replaymap - stuff the current track into the jukebox so it's next (occurs during normal jukebox nextmap function)
  • admin clearjukebox - clean out the jukebox completely
  • admin jbclear - clean out the jukebox completely (alias for clearjukebox)
  • admin jbskip - remove whatever track is currently next in jukebox (good if a track is "stuck")
plugin.rasp_adminmsg.php - Send messages to server/player
  • admin msg - Send admin msg to a player (/admin msg login message)
  • admin say - Send admin msg to everyone on the server
  • admin chat - Send message to all current admins that are present
plugin.rasp_autotime.php - Set the time of the next track based on settings in rasp.xml, autotime section

See rasp.xml for info on the settings.
Displaymode not currently implemented


plugin.rasp_chat.php - Create chat commands (lol, gg, etc...) from definitions in the rasp.xml file.

See the chatmsgs section of rasp.xml for how this works. Also allows for private messages between users.
  • msg "login" message text here - send message to specified player. If login is "admin" then send the private message to all admins currently in game
  • admin chatcmdreload - load the chat commands from the rasp.xml file, allows for re-defining commands without restarting ASECO
plugin.rasp_cptimes.php - Shows a small box right above current lap time which is the difference between your time at a checkpoint, and the time for that checkpoint on the best recorded run. Click on the time to turn it off.
  • cptimes - display the cp times box again after turning it off.
plugin.rasp_players.php - Display a list of players on the server (login name/nickname). If you're an admin, you'll have extra options displayed.
  • players - display list of players (if admin gives extra options (ignore/ban/kick/blacklist/warn)
plugin.matchsave.php - Matchsave, same old functions.
  • admin match {begin|end} - start/end a match
  • teamname {real name|clear|dbsave|dbclear|dbget|help} - see /teamname help for more info
plugin.rasp_karma.php
Karma tracker
  • ++ /-- - show your like/dislike of current track
  • karma - show karma of current track
  • ++ / -- - publicly show your like/dislike of a track
plugin.rasp_chatbot.php
Mouthy Bot
  • admin chatbotrestart - reload the settings for the bot (all settings are reloaded from the chatbot.xml file)
See chatbot.xml for what's currently defined for msgs & words.
Any text line with more than 1 | separator in it will randomly answer with one or more quotes. (see the first text line of responses for an example)
Last edited by Assembler Maniac on 15 Sep 2007 15:07, edited 14 times in total.
Asus P4C800-E Deluxe
P4 3.2Ghz @ 3.35Ghz
2G Kingston Hyper-X DDR 2
ATI Radeon X850 XT Platinum 256M
Sound Blaster Audigy II
2x 120G Maxtor Hard drives
HDTV Tuner Card (Fusion 5 Gold)

User avatar
Fleckman
speedy pilot
speedy pilot
Posts: 529
Joined: 17 Nov 2006 20:50
Owned TM-games: TMO,TMS,TMN,TMU
Location: Siegen, Germany
Contact:

Post by Fleckman » 26 Jun 2007 17:11

Sweet - will try it tonight!

EDIT: Tried it already - no problems whatsoever!
Last edited by Fleckman on 26 Jun 2007 18:17, edited 2 times in total.
Image

User avatar
scottmc
smooth traffic navigator
smooth traffic navigator
Posts: 237
Joined: 22 Feb 2006 19:22
Owned TM-games: TMO, TMS, TMN, TMU
Location: Northern California

Post by scottmc » 26 Jun 2007 17:27

Cool. I'll probably install this later this week when I have some time.

User avatar
XXX.MAX
smooth traffic navigator
smooth traffic navigator
Posts: 191
Joined: 26 Jun 2006 12:23
Owned TM-games: TMS, TMN, TMU, TMH
Manialink(s): xxx
Location: WALES
Contact:

Post by XXX.MAX » 26 Jun 2007 21:05

Looking good, works 1st time.
Not had a chance to look around much yet, but typing /teamname help crashes aseco.
Might be something i've overlooked.

Good work AM
Image
XXX Team Site: http://WALESXXX.awardspace.com
Stats site only on when I remember to fire it up

13ORGus
pedestrian
pedestrian
Posts: 6
Joined: 26 Jun 2007 21:10
Contact:

Post by 13ORGus » 26 Jun 2007 21:50

Hi Assembler Maniac,
I tried your RASP 2.0 with Aseco 1.05, and I had some problems...
The /nextmap command doesn't work (don't see anything in chatbox):

Code: Select all

[06/26,23:32:38] player .__gus__. used chat command '/nextmap '
[RPC Error -1000] Login unknown.
Array
(
    [0] => ChatSendServerMessageToLogin
    [1] => Array
        (
            [0] => $ff0> $000The next map is $fffCartmanland (Stadium)
            [1] =>
        )

)
/admin chat xxx crashes Aseco:

Code: Select all

[PHP Warning] implode(): Bad arguments. on line 135 in file C:\TMU\asecotmu_105\
plugins\rasp\plugin.rasp_cptimes.php

Fatal error: Call to a member function setContent() on a non-object in C:\TMU\as
ecotmu_105\plugins\rasp\plugin.rasp.php on line 414
[06/26,23:25:23] >> player 24 left the game [.__gus__.]
Appuyez sur une touche pour continuer...
In Round mode press DEL make Aseco crash:

Code: Select all

Fatal error: Call to a member function setContent() on a non-object in C:\TMU\as
ecotmu_105\plugins\rasp\plugin.rasp.php on line 414
[06/26,23:25:23] >> player 24 left the game [.__gus__.]
Appuyez sur une touche pour continuer...
/teamname help crashes Aseco too:

Code: Select all

[PHP Warning] Illegal offset type on line 47 in file C:\TMU\asecotmu_105\types\p
layerlist.class.php

Fatal error: Call to a member function createPopup() on a non-object in C:\TMU\a
secotmu_105\types\plugin.class.php on line 71
[06/26,23:38:40] >> player 25 left the game [.__gus__.]
Appuyez sur une touche pour continuer...
Tests were made on:
PHP 5.1.4 & MySQL 5.0.22-community-nt
and on:
PHP 5.2.1 & MySQL 5.0.27-community-nt
(Both on Windows XP)

Thanks for your work :)

Bye, Gus

Assembler Maniac
Pit Crew
Pit Crew
Posts: 1493
Joined: 03 Jun 2006 13:24
Owned TM-games: TMU
Contact:

Post by Assembler Maniac » 27 Jun 2007 04:46

XXX.MAX wrote:Looking good, works 1st time.
Not had a chance to look around much yet, but typing /teamname help crashes aseco.
Might be something i've overlooked.
I'll take a look at it. More info about the crash (text from aseco console) would be helpful.
Asus P4C800-E Deluxe
P4 3.2Ghz @ 3.35Ghz
2G Kingston Hyper-X DDR 2
ATI Radeon X850 XT Platinum 256M
Sound Blaster Audigy II
2x 120G Maxtor Hard drives
HDTV Tuner Card (Fusion 5 Gold)

Assembler Maniac
Pit Crew
Pit Crew
Posts: 1493
Joined: 03 Jun 2006 13:24
Owned TM-games: TMU
Contact:

Post by Assembler Maniac » 27 Jun 2007 05:06

/teamname help - fixed (change line 125 of plugin.matchsave.php to be $player->login, not just $player)
/nextmap - fixed (change line 1455 to "function chat_nextmap(&$command)" (&$command is missing))

/admin chat is working fine for me, not sure why it might be failing for you. The message you gave about it's failure is the same as the one below it (press DEL....). Were you in the admin list when you tried doing it?

When you say pressing "DEL" in rounds mode - do you mean key for checkpoint restart or track restart (retire)? I can't test it here too easily, don't have a rounds config handy.

Once I've gotten more feedback from people, I'll release the next version (2.0.1 probably).
13ORGus wrote:Hi Assembler Maniac,
I tried your RASP 2.0 with Aseco 1.05, and I had some problems...
The /nextmap command doesn't work (don't see anything in chatbox):

Code: Select all

[06/26,23:32:38] player .__gus__. used chat command '/nextmap '
[RPC Error -1000] Login unknown.
Array
(
    [0] => ChatSendServerMessageToLogin
    [1] => Array
        (
            [0] => $ff0> $000The next map is $fffCartmanland (Stadium)
            [1] =>
        )

)
/admin chat xxx crashes Aseco:

Code: Select all

[PHP Warning] implode(): Bad arguments. on line 135 in file C:\TMU\asecotmu_105\
plugins\rasp\plugin.rasp_cptimes.php

Fatal error: Call to a member function setContent() on a non-object in C:\TMU\as
ecotmu_105\plugins\rasp\plugin.rasp.php on line 414
[06/26,23:25:23] >> player 24 left the game [.__gus__.]
Appuyez sur une touche pour continuer...
In Round mode press DEL make Aseco crash:

Code: Select all

Fatal error: Call to a member function setContent() on a non-object in C:\TMU\as
ecotmu_105\plugins\rasp\plugin.rasp.php on line 414
[06/26,23:25:23] >> player 24 left the game [.__gus__.]
Appuyez sur une touche pour continuer...
/teamname help crashes Aseco too:

Code: Select all

[PHP Warning] Illegal offset type on line 47 in file C:\TMU\asecotmu_105\types\p
layerlist.class.php

Fatal error: Call to a member function createPopup() on a non-object in C:\TMU\a
secotmu_105\types\plugin.class.php on line 71
[06/26,23:38:40] >> player 25 left the game [.__gus__.]
Appuyez sur une touche pour continuer...
Tests were made on:
PHP 5.1.4 & MySQL 5.0.22-community-nt
and on:
PHP 5.2.1 & MySQL 5.0.27-community-nt
(Both on Windows XP)

Thanks for your work :)

Bye, Gus
Asus P4C800-E Deluxe
P4 3.2Ghz @ 3.35Ghz
2G Kingston Hyper-X DDR 2
ATI Radeon X850 XT Platinum 256M
Sound Blaster Audigy II
2x 120G Maxtor Hard drives
HDTV Tuner Card (Fusion 5 Gold)

User avatar
CavalierDeVache
smooth traffic navigator
smooth traffic navigator
Posts: 191
Joined: 23 May 2006 23:47
Owned TM-games: tmu tmn tms tmo
Location: Yellowstone Valley
Contact:

Post by CavalierDeVache » 27 Jun 2007 05:49

Howdy AM

I'm getting the same error in rounds mode, it occurs at the end of a lap, or if a fella retires. It seems to work fine in Time Attack mode though.

Code: Select all

Fatal error: Call to a member function setContent() on a non-object in /home/newuser/Aseco105/plugins/rasp/plugin.rasp.php on line 414
As always, Linux Ubuntu 6.06, php 5.1.2, MySQL 5.0.22 and I am running it on Aseco 1.05. I noticed earlier your server was running Aseco 1.04b, could something have changed in the final version?

13ORGus
pedestrian
pedestrian
Posts: 6
Joined: 26 Jun 2007 21:10
Contact:

Post by 13ORGus » 27 Jun 2007 08:15

Assembler Maniac wrote:/teamname help - fixed (change line 125 of plugin.matchsave.php to be $player->login, not just $player)
/nextmap - fixed (change line 1455 to "function chat_nextmap(&$command)" (&$command is missing))
I changed this 2 lines, so /teamname help and /nextmap work fine now :)
Assembler Maniac wrote:/admin chat is working fine for me, not sure why it might be failing for you. The message you gave about it's failure is the same as the one below it (press DEL....). Were you in the admin list when you tried doing it?
Sorry, I missed my copy & paste, here is the real error msg: (and I'm in the admin list ^^ )

Code: Select all

[06/27,10:01:45] player .__gus__. used chat command '/admin chat chat test'

Fatal error: Cannot access protected property Aseco::$admin_list in C:\TMU\aseco
tmu_105\plugins\rasp\plugin.rasp_adminmsg.php on line 24
[06/27,10:01:45] >> player 1 left the game [.__gus__.]
Appuyez sur une touche pour continuer...
Assembler Maniac wrote:When you say pressing "DEL" in rounds mode - do you mean key for checkpoint restart or track restart (retire)? I can't test it here too easily, don't have a rounds config handy.

Once I've gotten more feedback from people, I'll release the next version (2.0.1 probably).
When I say "DEL" I mean the key for track restart (retire)

13ORGus
pedestrian
pedestrian
Posts: 6
Joined: 26 Jun 2007 21:10
Contact:

Post by 13ORGus » 27 Jun 2007 13:44

I think I fixed the problem for /admin chat
I modified a line on Aseco.php
public $admin_list; on line 125 ( instead of protected $admin_list; )

Now /admin chat works fine :)

And I have a precision for Round mode, in fact, it's the end of the run who makes Aseco crash (if all players retired, or if they finished the run)

Assembler Maniac
Pit Crew
Pit Crew
Posts: 1493
Joined: 03 Jun 2006 13:24
Owned TM-games: TMU
Contact:

Post by Assembler Maniac » 27 Jun 2007 14:07

13ORGus wrote:I think I fixed the problem for /admin chat
I modified a line on Aseco.php
public $admin_list; on line 125 ( instead of protected $admin_list; )

Now /admin chat works fine :)

And I have a precision for Round mode, in fact, it's the end of the run who makes Aseco crash (if all players retired, or if they finished the run)
For now the $admin_list fix is ok, but I've adjusted the code to work differently so that won't be needed in the future.

Guess I'll have to configure out server to test out rounds mode. I'll have to test it tonight, don't have time today. Does this crash happen when only one person is on the server?
Asus P4C800-E Deluxe
P4 3.2Ghz @ 3.35Ghz
2G Kingston Hyper-X DDR 2
ATI Radeon X850 XT Platinum 256M
Sound Blaster Audigy II
2x 120G Maxtor Hard drives
HDTV Tuner Card (Fusion 5 Gold)

13ORGus
pedestrian
pedestrian
Posts: 6
Joined: 26 Jun 2007 21:10
Contact:

Post by 13ORGus » 27 Jun 2007 14:56

No, Aseco crash too if there are more than one player

User avatar
Jackel
speedy pilot
speedy pilot
Posts: 316
Joined: 06 Oct 2006 09:57
Owned TM-games: TMN,TMU,&TMS
Location: Florida, USA
Contact:

Thank You

Post by Jackel » 27 Jun 2007 23:52

Thank You for all your hard work, can't wait too install onto my server and try it out.

Assembler Maniac
Pit Crew
Pit Crew
Posts: 1493
Joined: 03 Jun 2006 13:24
Owned TM-games: TMU
Contact:

New version - 2.0.1 - see first post of this thread

Post by Assembler Maniac » 28 Jun 2007 04:20

See first post.
Asus P4C800-E Deluxe
P4 3.2Ghz @ 3.35Ghz
2G Kingston Hyper-X DDR 2
ATI Radeon X850 XT Platinum 256M
Sound Blaster Audigy II
2x 120G Maxtor Hard drives
HDTV Tuner Card (Fusion 5 Gold)

13ORGus
pedestrian
pedestrian
Posts: 6
Joined: 26 Jun 2007 21:10
Contact:

Post by 13ORGus » 28 Jun 2007 10:40

I tried this new version, and all problems seem to be fixed :)
Nice work AM, thanks.

Gus.

Post Reply