Vice City: Multiplayer

VC:MP Discussion => Support => Topic started by: Siezer on May 09, 2015, 10:52 AM

Title: Wrong server pass
Post by: Siezer on May 09, 2015, 10:52 AM
I have added the linux modules which are given  in modules folder and also added it on script load in load modules and when i hosted the server it is working in 0.3 mode and when i tried to go in server it says wrong server pass.
plz help me.
Title: Re: Wrong server pass
Post by: Gulk on May 09, 2015, 12:28 PM
:-\ add in your script.nut:

function onServerStart()
{
//Server Settings
 SetPassword("");
}

0.3 is no longer supported, upgrade your server to 0.4

here's the latest: http://forum.vc-mp.org/?topic=575.msg3789#msg3789
Title: Re: Wrong server pass
Post by: Siezer on May 09, 2015, 02:07 PM
bro on server start is already in my script then?
Title: Re: Wrong server pass
Post by: jayant on May 09, 2015, 02:13 PM
In server.conf remove all 0.3 settings and do similar to this below -
<Settings>
<ServerName>Server Name</ServerName>
<MaxPlayers>10</MaxPlayers>
<FriendlyFire>1</FriendlyFire>
<ShowOnRadar>1</ShowOnRadar>
<WeatherDefault>4</WeatherDefault>
        <Password>yourpass</Password>  // Removed this line in my case
<HourDefault>12</HourDefault>
<MinuteDefault>0</MinuteDefault>
<TimeRate>0</TimeRate>
    <StuntMode>true</StuntMode>
    <JumpSwitch>true</JumpSwitch>
    <TaxiBoostJump>true</TaxiBoostJump>
    <RconEnabled>false</RconEnabled>
    <FastSwitch>true</FastSwitch>
    <DriveOnWater>false</DriveOnWater>
    <FrameLimiterOn>false</FrameLimiterOn>
    <SyncFrameLimiter>true</SyncFrameLimiter>
    <DeathMessages>true</DeathMessages>

<PlayerPos x="-1105.0217" y="341.3497" z="12.8066" />
<CamPos x="-1105.0120" y="343.9509" z="11.6364" />
<CamLook x="-1105.0217" y="341.3497" z="12.8086" />
<WorldBoundaries x1="5000.0" x2="-5000.0" y1="5000.0" y2="-5000.0"/>

// Other things
</Settings>

OnServerStart() I am not using SetPassword(""); try the above but first remove onServerStart's SetPassword(""); thing
Title: Re: Wrong server pass
Post by: . on May 09, 2015, 02:16 PM
First of all, 0.4 works very different than 0.3. If this is a question about 0.3 than it should be closed as it's been deprecated. However, for the sake of not being a total d!ck. Let me explain (or ask) a couple things which perhaps I misunderstood.


Have a nice day.
Title: Re: Wrong server pass
Post by: Siezer on May 09, 2015, 04:27 PM
thanks jayant it works but not conveted into 0.4 mode?
Title: Re: Wrong server pass
Post by: jayant on May 09, 2015, 05:30 PM
You have 0.3 scripts and you need to convert them to 0.4. For that you should start the server and see the errors and bugs and try to fix them. You can use wiki to see the changed functions and newly introduced functions in 0.4. 

Off - I firstly used a converted script but now I am writing my own and its better to write new one :)
Title: Re: Wrong server pass
Post by: Siezer on May 10, 2015, 04:44 AM
plz you can tell me about wiki?
Title: Re: Wrong server pass
Post by: . on May 10, 2015, 04:59 AM
Quote from: Rocki on May 10, 2015, 04:44 AMplz you can tell me about wiki?
Quote from: stormeus on Oct 06, 2014, 09:04 PM...


Squirrel Documentation
A list of functions and callbacks can be found on the VC:MP Wiki:
http://wiki.vc-mp.org/index.php?title=Scripting_Resources


...
Title: Re: Wrong server pass
Post by: Siezer on May 10, 2015, 06:00 AM
bro i have hosted the server but it is not coming in masterlist of 0.4 and it is 0.3 script?
help me plz
Title: Re: Wrong server pass
Post by: jayant on May 10, 2015, 12:55 PM
In your server.cfg file do like this -
announce_verbose true
gamemode gamemodename
plugins hashing04rel32 sqlite04rel32 xmlconf04rel32 squirrel04rel32 sockets04rel32 ini04rel32 cmdinputrel32 announce04rel32
port 5724
sqgamemode Main.nut or your.nut

Windows platform - If you are using port 5724 for vc-mp server, port forward to 5724 port.
Linux platform - Please check if all of your ports are open, mainly 5724 port.
Announce_verbose true // This is for announcing your server to masterlist.

Additional - 0.4 Requirements >>

"plugins" folder - with all the important plugins used by the server.
"server.conf" - a text file with all the settings < it was a part of vcmp 0.3 and now a part of 0.4 with removed things like rcon,gamemode etc >. "server.conf" is loaded by "xmlconf04rel32" plugin
"server.cfg" - Information provided above.
"server.exe" or "mpsvrrel32 or 64 " file to start the server.

To know more, roam everywhere in forum :)