I was just wondering how some of the maps make it so that if you open it in single player it crashes, but if you open it B-net you can play just fine. I kinda need to know how for the map i am making or you could just cheat your whole way through which takes all the fun out of it(yet people still do it a lot). Any advise is accepted.
(i am pretty good with triggers, so a trigger version would be ok)
(i am currently working with scm draft, so please don't tell the the starforge/extra version.)
Yeah dude crashing is reserved for hackers ONLY. because they can still stay in game after victory or defeat or draw is given to them. Just give the player a Draw after a 5 second message about why that happened.
Well, i don't think that would work... In the tutorial description it says "Any game with only one player". The game i am making is only for one person, so i don't think that will work. I can think of a bunch of ideas that might work, but I'm sure there is a flawless/'clean' way to do this. If anyone knows a really easy way to do this that can occur instantly at the beginning of the game, that would be great.
No, that tutorial is for detecting single player mode. It uses the difference in center view which is for single player mode, not for 1 player in multi player mode.
Another simple way to prevent single player mode is to just make it so that P2 is required and P1 is open. The only way to be player 2 is to go into multiplayer start screen and move down (this is what DEAD does in his GTA map, at least that is why I think he made P2 required).
Hope that helps
That way is not a good method because it cant be used on LAN. That tutorial does it perfectly without the error percentage. and yes that method is FLAWLESS and CLEAN.
Lan has the same pregame screen as bnet, so you can still move down to P2
Well, problem is that i have already used all of the players(including player2) with many extensive triggers and i would rather not go and change them. So is the 'Center View' the only other method?
Yeah, probably, but you say it like you would like to avoid this method, but I don't see why, it is a very good method.
I guess so... Thanks for everyones help.
You could also use EUD conditions to detect if players have enabled cheats, and end the game in defeat if they have. This method would allow them to play on single player, but prevent them from using ingame cheats.
I dont know much about EUD stuff... But i might have to learn cause that would be a good thing to know how to do... So unless someone says nething else i guess im going with the Center View method...(im not gonna put that part in until the very end, so you have a couple of weeks.) Thanks.
Here's a trick I once used:
On single player, center view not only takes longer, but it CENTERS THE CURSOR TO THE MIDDLE OF THE SCREEN! This does not happen on multiplayer.
If you are using a hyper trigger, make a small portion at the start where it center views at a certain location and they have to move a unit to a beacon (at the side of the screen). On single player this will be rendered impossible because you can't control the cursor.
