AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Make ForceChangeLevel work (https://forums.alliedmods.net/showthread.php?t=258151)

Leonardo 02-14-2015 04:14

Make ForceChangeLevel work
 
Running a sdk013 mod, what should I configure to get ForceChangeLevel working? Thanks.

Leonardo 02-16-2015 23:18

Re: Make ForceChangeLevel work
 
Ok then another question:
How do I get IDA5 work properly? Generated file with vtable offsets is kinda incorrect.
Code:

// Auto reconstructed from vtable block @ 0x00000000
// from "server.so", by ida_vtables.idc
0        loc_10101
1        unk_0
2        unk_0

IDA5 shows only ~6 functions named like null_sub*, all others are just strings (ofc I've tried to work with server.so).

psychonic 02-17-2015 06:47

Re: Make ForceChangeLevel work
 
Quote:

Originally Posted by Leonardo (Post 2262116)
Running a sdk013 mod, what should I configure to get ForceChangeLevel working?

Nothing. It should work as-is. ForceChangeLevel just called IVEngineServer::ChangeLevel, which is exactly the same for all SDK2013 mods.

Leonardo 02-17-2015 12:14

Re: Make ForceChangeLevel work
 
Code:

L 02/14/2015 - 11:01:49: [SM] Native "AcceptEntityInput" reported: "AcceptEntityInput" not supported by this mod
L 02/14/2015 - 11:01:49: [SM] Displaying call stack trace for plugin "umc-core.smx":
L 02/14/2015 - 11:01:49: [SM]  [0]  Line 4766, umc-core.sp::DoMapChange()
L 02/14/2015 - 11:01:49: [SM]  [1]  Line 4182, umc-core.sp::Handle_MapVoteWinner()
L 02/14/2015 - 11:01:49: [SM]  [2]  Line 3734, umc-core.sp::ProcessVoteWinner()
L 02/14/2015 - 11:01:49: [SM]  [3]  Line 3710, umc-core.sp::ProcessVoteResults()
L 02/14/2015 - 11:01:49: [SM]  [4]  Line 1234, umc-core.sp::Native_UMCVoteManagerComplete()

thne, my guess, it stops proceeding after throwing this error.
which mean, it's impossible to make some workaround without code changes, right?

psychonic 02-17-2015 12:16

Re: Make ForceChangeLevel work
 
Quote:

Originally Posted by Leonardo (Post 2263302)
Code:

L 02/14/2015 - 11:01:49: [SM] Native "AcceptEntityInput" reported: "AcceptEntityInput" not supported by this mod
L 02/14/2015 - 11:01:49: [SM] Displaying call stack trace for plugin "umc-core.smx":
L 02/14/2015 - 11:01:49: [SM]  [0]  Line 4766, umc-core.sp::DoMapChange()
L 02/14/2015 - 11:01:49: [SM]  [1]  Line 4182, umc-core.sp::Handle_MapVoteWinner()
L 02/14/2015 - 11:01:49: [SM]  [2]  Line 3734, umc-core.sp::ProcessVoteWinner()
L 02/14/2015 - 11:01:49: [SM]  [3]  Line 3710, umc-core.sp::ProcessVoteResults()
L 02/14/2015 - 11:01:49: [SM]  [4]  Line 1234, umc-core.sp::Native_UMCVoteManagerComplete()

thne, my guess, it stops proceeding after throwing this error.
which mean, it's impossible to make some workaround without code changes, right?

You are correct that it is throwing an error before calling ForceChangeLevel. For that vote plugin to work, you will need gamedata for AcceptEntityInput for the mod. No code changes are needed.

Powerlord 02-17-2015 12:53

Re: Make ForceChangeLevel work
 
Quote:

Originally Posted by psychonic (Post 2263303)
You are correct that it is throwing an error before calling ForceChangeLevel. For that vote plugin to work, you will need gamedata for AcceptEntityInput for the mod. No code changes are needed.

Is there any way to detect if a mod supports AcceptEntityInput?

Leonardo 02-17-2015 12:58

Re: Make ForceChangeLevel work
 
Quote:

Originally Posted by Powerlord (Post 2263317)
Is there any way to detect if a mod supports AcceptEntityInput?

Like this?

Powerlord 02-17-2015 13:24

Re: Make ForceChangeLevel work
 
Quote:

Originally Posted by Leonardo (Post 2263320)

True, but that means you need to rely on SourceMod's gamedata files always having an entry for "AcceptInput" which, as I understand it, is not something you're supposed to do.

Edit: I was hoping the answer was "check if feature X is available."

Mathias. 02-17-2015 14:42

Re: Make ForceChangeLevel work
 
just wonder, what game you working on?


All times are GMT -4. The time now is 06:58.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.