Error: StartIn dex cannot be less than zero

Redirect Server Checker for the Source Engine (CS:S, TF2, DOD:S, HL2MP, etc)--formerly CSRSC
Flambe
Posts: 10
Joined: Fri Dec 31, 2010 12:05 pm

Error: StartIn dex cannot be less than zero

Post by Flambe »

Trying to use this tool for the first time. I got this error. This is the entire log of what happens:

Code: Select all

SourceRSC Version 1.951 by Brainless Technologies LTD.
www.brainless.us
Ini:  sourcersc.ini
Gameserver query mode:  FTP
Redirect query mode:  Local
Redirect path:  C:\Users\Steve\Documents\My Dropbox\Public\garrysmod
Compress path:  c:\temp\bzd
Game Mod:  GMOD
Platform:  Windows

-----Phase One-----Basefile
Contacting URLDownload.com for updated basefiles....local file is current.
Entries in basefile:  9222

-----Phase Two-----Gameserver
Connected to FTP Server
Please be patient, this process may take awhile
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
_______
Files found on server:  13018

Determining custom/extra files....
Total extra files:  2410

-----Phase Three-----Redirect

Files found on redirect:  0
Total files missing on redirect:  2410

-----Phase Four-----Compression
Processing #1/2410::Downloading: DONT UPLOAD TO GARRYSMOD.ORG
█
Compressing DONT UPLOAD TO GARRYSMOD.ORG....OK..CopyingUnhandled Error:  StartIn
dex cannot be less than zero.
Parameter name: startIndex
   at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length,
Boolean fAlwaysCopy)
   at System.String.Substring(Int32 startIndex)
   at #=qkr87ARtHWcH0IQuv70fLjzE2$vzMAtrbSqYgf5EvLwQ=.#=qwnjY2pcbip7_ZaW7t69iAQ=
=()
   at #=q8_R9oT2a4U5ea$qgCEpsXFI0CLlZq0KQBbHfdWCE3Ig=.#=qG$buO8ocOI0Agx2d8oSnwg=
=(String[] #=qNE0OZYcFsFaC65R9TNUfiQ==)
Press enter to continue
This is my .ini file:

Code: Select all

//Tell SourceRSC what mod it's working with (CSS, HL2DM, DODS, TF2, L4D, GMOD)
//If using a custom RSC file for a mod, enter the name of the RSC file minus the .rsc
[GameMod]
GMOD

//Gameserver query mode (FTP or Local)
[GSQryMode]
FTP

//Redirect query mode (FTP or Local)
[RedirQryMode]
local

//Enter the path to the gamemod if querying gameserver via local mode
[ServerPath]


//Enter the root path to the redirect if querying redirect via local mode
[RedirectPath]
C:\Users\Steve\Documents\My Dropbox\Public\garrysmod

//If querying game server via FTP, where should SourceRSC save compressed downloaded files to
//Leaving this as-is is fine.
[CompressPath]
c:\temp\bzd

//Delete the CompressPath folder when done
[RmCPath]
False

//Don't process the addons folder of game server.  Set to False for Garry's Mod(True/False)
[SkipAddons]
False

//Skipmisc:  Automatically skip the logs, downloads, and other misc folders on game server--speeds things up a bit (especially when using ftp) (True/False)
[SkipMisc]
False

//-----The following ftp server info is used to connect to the Gameserver-----
//This section is only needed if querying gameserver via FTP
//FQDN or IP of your FTP Server
[FTPSrvr]
80.84.53.100

//FTP Server Port (Def 21)
[FTPPort]
21

//FTP Username
[FTPUser]
******* blocked for obvious reasons

//FTP Password
[FTPPass]
******* blocked for obvious reasons

//The root folder of your game mod, must be prefixed with /  ie. /cstrike.  Leave blank for root
[FTPPath]
/80.84.53.100 port 27033/garrysmod

//Use passive mode?  Try toggling this if you are having problems connecting to the server (True/False)
[FTPPasv]
True

//-----The following ftp server info is used to connect to the Redirect-----
//This section is only needed if querying redirect via ftp
//Redirect:  FQDN or IP of your FTP Server
//Looking for a good deal on a redirect--checkout www.urldownload.com--prices start at $5/mo
[Redir-FTPSrvr]
SV1.URLDOWNLOAD.COM

//Redirect:  FTP Server Port (Def 21)
[Redir-FTPPort]
21

//Redirect:  FTP Username
[Redir-FTPUser]
me

//Redirect:  FTP Password
[Redir-FTPPass]
mepass

//The root folder of your redirect, must be prefixed with /  ie. /redir.  Leave blank for root
[Redir-FTPPath]
/redir

//Redirect:  Use passive mode?  Try toggling this if you are having problems connecting to the server (True/False)
[Redir-FTPPasv]
True

//Redirect:  Automatically upload new compressed files to the redirect? (True/False)
//If set to false you'll need to manually upload the files in [CompressPath] path to your redirect.
[Redir-Upload]
True

//Redirect:  Create Redir-FTPPath if it doesn't exist
[Redir-CreateFtpPath]
True

//Debug:  Be very verbose? (True/False)
[Debug]
False

//Autoupdate:  Automatically check for updated basefiles(True/False)
[AutoUpdate]
True

//Delete files on the redirect that aren't on the server? (Off, Report, or Delete)
//You should probably keep this off for Garry's Mod
//Off==feature disabled
//report==will report files on the redirect that aren't on the game server
//delete==same as report but will automatically delete them (ensure everything is working correctly before setting to this)
[RedirectCleaner]
Off
Would be really good to get it working! Thanks in advance.
Masher
Site Admin
Posts: 3612
Joined: Thu Apr 20, 2006 2:54 pm
Location: America's Heartland
Contact:

Re: Error: StartIn dex cannot be less than zero

Post by Masher »

Flambe,

I've fixed a couple of problems for other users, can you please try the following binary. Just unpack and overwrite the existing files in your install. Let me know if it solves your problem.

http://www.brainless.us/dls/SourceRSC1955.rar
Masher
-----------
Please do not PM me unless asked to! We are a small company. If you have an issue or question it would be best to post it in the forums where it can help others in the future.

NEW Join our Discord!
Flambe
Posts: 10
Joined: Fri Dec 31, 2010 12:05 pm

Re: Error: StartIn dex cannot be less than zero

Post by Flambe »

Just installed that and tried again. Still get the same error at the same point and can't continue.

Thanks for the fast response!
Masher
Site Admin
Posts: 3612
Joined: Thu Apr 20, 2006 2:54 pm
Location: America's Heartland
Contact:

Re: Error: StartIn dex cannot be less than zero

Post by Masher »

Was the error message different? Ie. less cryptic....if so could you post the full error message?
Masher
-----------
Please do not PM me unless asked to! We are a small company. If you have an issue or question it would be best to post it in the forums where it can help others in the future.

NEW Join our Discord!
Flambe
Posts: 10
Joined: Fri Dec 31, 2010 12:05 pm

Re: Error: StartIn dex cannot be less than zero

Post by Flambe »

I think it was the same. But I'll check now.

Edit: Are log files planned/can they be enabled?
Flambe
Posts: 10
Joined: Fri Dec 31, 2010 12:05 pm

Re: Error: StartIn dex cannot be less than zero

Post by Flambe »

Code: Select all

-----Phase Four-----Compression
Processing #1/2410::Downloading: DONT UPLOAD TO GARRYSMOD.ORG
█
Compressing DONT UPLOAD TO GARRYSMOD.ORG....OK..CopyingUnhandled Error:  StartIn
dex cannot be less than zero.
Parameter name: startIndex
   at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length,
Boolean fAlwaysCopy)
   at System.String.Substring(Int32 startIndex)
   at #=qubsulYyJriYtIeuytVybp4O_k61xO2trPQCv4qj6EJk=.#=q1kbIe_zFDJVXsO5M3GBfLQ=
=()
   at #=qCh8t0q5MAl$t6b0c$IiQzoNvnRmQMZ96EXLn31Gzd94=.#=qLyJR9TkPDu331FAW4YtQzQ=
=(String[] #=qqqfzlyjWSPeL$QoqRidkTg==)
Press enter to continue
Yeah, it's the same I think.

Edit: Any ideas on what could be causing this?
Masher
Site Admin
Posts: 3612
Joined: Thu Apr 20, 2006 2:54 pm
Location: America's Heartland
Contact:

Re: Error: StartIn dex cannot be less than zero

Post by Masher »

This will be a little hard to trouble shoot without being able to run and debug it here. Could you possibly send me a Private Message with your full ini?
Masher
-----------
Please do not PM me unless asked to! We are a small company. If you have an issue or question it would be best to post it in the forums where it can help others in the future.

NEW Join our Discord!
Flambe
Posts: 10
Joined: Fri Dec 31, 2010 12:05 pm

Re: Error: StartIn dex cannot be less than zero

Post by Flambe »

I have an idea, the file that was causing the problem is 0 bytes big.

I've deleted the file from the game server and I'm retrying sourcersc. If it still doesn't work, I'll send you my full .ini file.
Masher
Site Admin
Posts: 3612
Joined: Thu Apr 20, 2006 2:54 pm
Location: America's Heartland
Contact:

Re: Error: StartIn dex cannot be less than zero

Post by Masher »

Sounds good.
Masher
-----------
Please do not PM me unless asked to! We are a small company. If you have an issue or question it would be best to post it in the forums where it can help others in the future.

NEW Join our Discord!
Flambe
Posts: 10
Joined: Fri Dec 31, 2010 12:05 pm

Re: Error: StartIn dex cannot be less than zero

Post by Flambe »

Yeah that fixed it. Seems to be working fine now.

But the program, or .net doesn't seem to be able to handle files with no content.
Masher
Site Admin
Posts: 3612
Joined: Thu Apr 20, 2006 2:54 pm
Location: America's Heartland
Contact:

Re: Error: StartIn dex cannot be less than zero

Post by Masher »

What was the path and filename of this Zero sized file? I have a feeling it's something to do with path of the file.
Masher
-----------
Please do not PM me unless asked to! We are a small company. If you have an issue or question it would be best to post it in the forums where it can help others in the future.

NEW Join our Discord!
Flambe
Posts: 10
Joined: Fri Dec 31, 2010 12:05 pm

Re: Error: StartIn dex cannot be less than zero

Post by Flambe »

/80.84.53.100 port 27033/garrysmod/addons/Adv Duplicator/DONT UPLOAD TO GARRYSMOD.ORG

That's the full path on the server.

Edit: just got the same error on another file, icon.tga
No idea where that's located.

Edit2: May have found it. I found an icon.tga in "addons\wire model pack 1" and "addons\wire"
about 4kb but gives the same error.

You have steam? Be much easier to talk on there.
Masher
Site Admin
Posts: 3612
Joined: Thu Apr 20, 2006 2:54 pm
Location: America's Heartland
Contact:

Re: Error: StartIn dex cannot be less than zero

Post by Masher »

Yeah, it's listed at: http://www.brainless.us/contact.aspx

Also, try this build and let me know if it helps if not post the error message. About to go out for a few, but will check on this when I get back.

http://www.brainless.us/dls/SourceRSC1956.rar
Masher
-----------
Please do not PM me unless asked to! We are a small company. If you have an issue or question it would be best to post it in the forums where it can help others in the future.

NEW Join our Discord!
Flambe
Posts: 10
Joined: Fri Dec 31, 2010 12:05 pm

Re: Error: StartIn dex cannot be less than zero

Post by Flambe »

Added. And I'll readd the files to the ftp and see if the new build errors still.
Flambe
Posts: 10
Joined: Fri Dec 31, 2010 12:05 pm

Re: Error: StartIn dex cannot be less than zero

Post by Flambe »

Fixed! And it even downloaded some extra files that it probably hadn't before.

Though they upload to the redirect server wrong. I don't think the program understands where they go (since they are in addons) so it dumps them straight to the "root" of the redirect server.
E.g. the 0 byte file which origionally was in garrysmod\addons\adv duplicator (on the game server) is now in garrysmod\adv duplicator (on the redirect server).

Happened to the 2 icon.tga files as well.
Post Reply