Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QueueGameCommand_LeaveGame() not working? #27

Closed
Chromowolf opened this issue Apr 1, 2021 · 5 comments
Closed

QueueGameCommand_LeaveGame() not working? #27

Chromowolf opened this issue Apr 1, 2021 · 5 comments
Labels
question Further information is requested

Comments

@Chromowolf
Copy link
Contributor

I read through the related links in #17 (comment), got some knowledge about the game commands. Thanks!
I wanna force specific player to leave:

function onPluginStart() {
	// setcurpl(getuserplayerid());
	eprintln("Leave?");
	// if (getuserplayerid()==0)
	QueueGameCommand_LeaveGame(1); //I tried 1,2,3,4,5,6 but none worked
}

I read your source code: https://github.com/armoha/eudplib/blob/master/eudplib/eudlib/qgcf/qgc.py#L133
also, https://github.com/phu54321/vgce/blob/master/docs/Blizzard/Starcraft/packets2.txt#L48
But it doesn't work in game

@armoha
Copy link
Owner

armoha commented Apr 1, 2021

Yeah does not work even in SC 1.16. I think this is only used in replay.

@Chromowolf
Copy link
Contributor Author

Thx

@Chromowolf
Copy link
Contributor Author

Chromowolf commented Apr 1, 2021

Oh, other question about QueueGameCommand_Select(n, ptrList)
https://github.com/armoha/eudplib/blob/master/eudplib/eudlib/qgcf/qgc.py#L61

I tried

function onPluginStart() {
	QueueGameCommand_Select(1, 0x59CCA8);
}

But:
image

Seems that some trigger is trying to read 0x000000A5, but I can't figure out why.

@armoha
Copy link
Owner

armoha commented Apr 1, 2021

Oh, other question about QueueGameCommand_Select(n, ptrList)
https://github.com/armoha/eudplib/blob/master/eudplib/eudlib/qgcf/qgc.py#L61

I tried

function onPluginStart() {
	QueueGameCommand_Select(1, 0x59CCA8);
}

But:
image

Seems that some trigger is trying to read 0x000000A5, but I can't figure out why.

QueueGameCommand_Select(1, [0x59CCA8]);

@armoha armoha added the question Further information is requested label Apr 1, 2021
@Chromowolf
Copy link
Contributor Author

Chromowolf commented Apr 1, 2021

Thx!
Found a typo:
https://github.com/armoha/eudplib/blob/master/eudplib/eudlib/qgcf/qgc.py#L160
MUseCheatCommand = c.Db(b"...\x2ACCCC")
should be
UseCheatCommand = c.Db(b"...\x12CCCC")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants