TASClient Request

TASClient Request

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

TASClient Request

Post by FLOZi »

It'd be great to have a feature for mod devs to be able to start a game despite of supposed sync problems, it's often a real pain when working from an sdd with SVN to get sync, in fact it currently seems to be broken altogether.
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Re: TASClient Request

Post by Peet »

IIRC you can force with SL :)
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: TASClient Request

Post by lurker »

You can edit the hash in archivecache if you want. I'll look at making an python to fake sync.

Edit: Well, looks like aegis made an python but didn't quite finish the bug testing, so I changed one line to fix a bug. Save this to Spring\lobby\Python\scripts\forcesync.py and restart TASClient. Then just use /sync (and change your color or side or anything that forces a status update)

Code: Select all

import lobbyscript
api = lobbyscript.Callback()
gui = lobbyscript.GUI()

sync = False

def out_MYBATTLESTATUS(battlestatus, color):
	battlestatus = int(battlestatus) & ~(1<<23) | 1<<22
	return str(battlestatus), color

def cmd_sync():
	global sync
	sync = not sync
	if sync: status = 'on'
	else: status = 'off'
	gui.AddToRichEdit('$current','Forced sync is %s' % status, 16711680)
	return True
But you need a custom spring that doesn't abort the instant you connect, too, such as http://evolutionrts.info/~lurker/noresi ... spring.zip
Post Reply

Return to “Feature Requests”