• Welcome to Vice City Multiplayer.
 

sansan v3 released!

Started by bakasan, February 29, 2008, 12:56:36 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

ReVilo

!mode load
to load the mode
!mode unload
the unload the mode

Jack_Bauer

my mode thing seems to have crashed :S
It says,
Remote Console Disconnected
Remote Console Connected
Unloading mode generic . . .

and it stays like that,you can go in server and everything works normally,except you cant change to lms. :S anybody with same problem or has any solutions?

P.D:I think it started not working when i changed teams on config.ini



bakasan

make sure your sansan has the latest version of your server config.ini:
if u make changes to ur config, dont forget to update the one sansan has as well




for the mode problems, you could try this in irc:
from your irc (not sansan) try !sansan mode unload generic
(note: replace !sansan with your bot's name.  e.g. if your bot is named MyBot then the command is !MyBot mode unload generic )

or else you could make an alias that resets modes like this:

alias vcmp.mode.reset {
  if (%currentmode != none) vcmp.mode.unload %currentmode
  set %currentmode none
  vcmp.echo ** Modes Reset.
}

then type /vcmp.mode.reset from sansan irc

then modes should work normal again if u type !mode lms from ingame or whatever


hope that helps

Jack_Bauer

its weird couse it says . . .
* /unload: no such file 'vcmp.mode.generic.mrc' (line 1551, rcon.mrc)

but there is "such file" :S



ReVilo

Are you using mIRC 6.31? Or 6.21?

Jack_Bauer

#20
6.21


<[R3V]Server> Remote Console Disonnected.
<[R3V]Server> Remote Console Connected.
<[R3V]Server> ** Unloading Mode generic...

:S seems the "unloading" doesnt work,any ideas?

;--- Generic Mode
;--- Copy this blank mode to use as a start point for writing a new mode from scratch for sansan
;--- If the mode is called mymode name the file vcmp.mode.mymode.mrc and place it in the bot dir
;--- It can be loaded as admin level 10 from ingame with: !mode mymode
;--- or as op from mirc with: !<botname> mode load mymode
;-----------------------------------------------------------------------------------------------

;--- dont change these two in most cases
on *:LOAD:{
  set %currentmode $gettok($nopath($script),-2,46)
  set %modesettinghash $+(vcmp.mode.,%currentmode,.settings.hash)
  set %modesettingfile $+(vcmp.mode.,%currentmode,.settings.ini)
  vcmp.echo ** Mode %currentmode loaded.
  .signal mode.cleanup
}
on *:UNLOAD:{
  .signal mode.cleanup
  vcmp.echo ** Mode %currentmode unloaded.
  set %currentmode none
}

;--- sansan signals
on *:START:{
  vcmp.adminchat ** Welcome to the %currentmode mode!
  .signal mode.init
}


from other irc client ![R3V]Server mode load lms

<[R3V]Jack_Bauer> ![R3V]Server mode load lms
<[R3V]Server> ** Unloading Mode generic...

* /unload: no such file 'vcmp.mode.generic.mrc' (line 1551, rcon.mrc)
-

;--- game mode support
alias vcmp.mode.reset {
  if (%currentmode != none) vcmp.mode.unload %currentmode
  set %currentmode none
  vcmp.echo ** Modes Reset.
}
alias vcmp.mode.load {
  if ($1 != none) {
    var %mode = vcmp.mode. $+ $1 $+ .mrc
    if ($exists(%mode)) {
      vcmp.mode.addavailable $1
      vcmp.mode.checkcurrentandunload
      vcmp.echo ** Loading Mode $1 $+ ...
      /load -rs %mode
    }
    else vcmp.echo ** Mode $1 not found.
  }
}
alias vcmp.mode.unload {
  if ($1 != none) {
    var %mode = vcmp.mode. $+ $1 $+ .mrc
    if ($exists(%mode)) {
      vcmp.echo ** Unloading Mode $1 $+ ...
      /unload -rs %mode
    }
    else vcmp.echo ** Mode $1 not found.
  }
}
alias vcmp.mode.checkcurrentandunload {
  if (%currentmode != none) vcmp.mode.unload %currentmode
}
alias vcmp.mode.exists return $iif(($exists(vcmp.mode. $+ $1 $+ .mrc)),$true,$false)
alias vcmp.mode.addavailable %availablemodes = $addtok(%availablemodes,$1,32)
alias vcmp.mode.remavailable %availablemodes = $remtok(%availablemodes,$1,1,32)

;--- rotten festering mess
alias vcmp.cmd.killplayer {



Jack_Bauer

Sorry for double post but. . .

RESOLVED

**Jack Bauer is a F****** N00B
**Jack Bauer is a F****** N00B
**Jack Bauer is a F****** N00B
**Jack Bauer is a F****** N00B
**Jack Bauer is a F****** N00B

If theres anybody having same problem or similar,go to mIRC,the one with your bot, go to "file" "load" and select the modes . . .



Chnelite

Quote from: bakasan on February 29, 2008, 12:56:36 PM


3) run the mirc.exe and fill out all the needed mirc info in Tools->Options (mirc nicks, email, irc-server address, etc)




How do i get those infos abt my server?
please help me!

ReVilo

He means you can't use the commands through the mIRC client you use to run the scripts.
in other words:
Open one mIRC client, run the scripts, minimize.
Open ANOTHER mIRC client, go to the channel and use the commands.

TanaX01

Bakasan Please Help My In Load Lms Mode  :)

bakasan

from ingame as admin type !mode lms

TanaX01

#26
Quote from: bakasan on July 23, 2008, 02:31:13 AM
from ingame as admin type !mode lms

Ok Thx  ;)


TanaX01

Quote from: TanaX01 on July 23, 2008, 03:04:38 AM
Quote from: bakasan on July 23, 2008, 02:31:13 AM
from ingame as admin type !mode lms

Ok Thx  ;)




Hey sasan o other user help my and stop mode lms   ;)

Tommis

Hey,

Don't know how I haven't said this, but great work man. Awesome scripts. :)

Regards,
Tommis

Windlord

I've been able to learn loads from looking through this script :)

Thank you for creating such an extensively detailed script!

I look forward to v4  ;D