Results 1 to 7 of 7
-
28-03-2011 #1Member
- Join Date
- Mar 2011
- Posts
- 8
- Rep Points
- 0
- Rep Power
- 3
No Control Over User Units [SOLVED]
Hi,
This one is driving me crazy. I've placed some units in a map and given them a player number 0 and changed the control from AI to User (This has all been done in F3 mode) I've then saved the 0.mi file and exited the editor. However, after loading the game and activating my mod (single player) I can't control the units in game, and by that I mean I can't even click on them or highlight them in any way, it all works fine when I test in the editor (F1> press the number given to the units etc.) but I can't for the love of me get to control them in game!
What am I doing wrong?
TommyB
[SOLVED]
see 7th post!
-
28-03-2011 #2
Re: No Control Over User Units
If you are talking about skirmishes, then assign those units to be player 2 not 0. I know 2 works for sure.
/ Skirmish Missions by DJSatane * DJSatane's Twitch Channel \
=======================================
\ DJSatane@Twitter * DJSatane's Steam Games Picture Library /
-
28-03-2011 #3Member
- Join Date
- Mar 2011
- Posts
- 8
- Rep Points
- 0
- Rep Power
- 3
Re: No Control Over User Units
Thanks for the reply djsatane, unfortunately that didn't help, it doesn't matter what number I give to 'Player' or the enemy AI, the results are always the same... It works while testing in editor mode, but fails in game, I just get a little red cross when the cursor goes over the units!
How hard can this be? Place a unit in F3 mode, make it player 0, change the control to User, save the 0.mi file, copy the files over to MyMod folder and test in game
Here's the code if it helps any...
Has you can see its a pretty simple map, in fact its a map (Just the map nothing else) taken from the multi player side of the game that I’m using, surely that can't be the reason can it?Code:{mission {Human "mp/eng/elite" 0xa000 {Position 618.26 1005.45} {Player 0} {MID 1} {NameId 24 27} {FsmState "stand"} } {Tags "keep_places_without_door" 0x7000} {Tags "keep_places_without_door" 0x703a} {Tags "keep_places_without_door" 0x7044} {Tags "keep_places_without_door" 0x7057} {Tags "switch_right" 0x4035} {Tags "keep_places_without_door" 0x8c} {Tags "keep_places_without_door" 0x8d} {Tags "keep_places_without_door" 0x99} {Tags "keep_places_without_door" 0xa9} {Tags "keep_places_without_door" 0xaf} {Tags "keep_places_without_door" 0x2078} {Tags "keep_places_without_door" 0x104e} {Inventory 0xa000 {box {clear} {item "sten_v_silencer" filled {cell 0 0}{user "hand_right"}} {item "pistol" "ammo" 100 {cell 4 0}} {item "pistol" "ammo" 100 {cell 4 1}} {item "pistol" "ammo" 100 {cell 0 2}} {item "pistol" "ammo" 100 {cell 2 2}} {item "pistol" "ammo" 100 {cell 4 2}} {item "bandage" 5 {cell 0 3}} {item "mk1" "grenade" {cell 2 3}} {item "mk1" "grenade" {cell 3 3}} {item "mk1" "grenade" {cell 4 3}} {item "n73at" "grenade" {cell 0 4}} {item "n73at" "grenade" {cell 2 4}} {item "smoke" "grenade" {cell 4 4}} {item "smoke" "grenade" {cell 0 5}} {item "antitank" "mine" {cell 2 5}} {item "beret_commando" {cell 4 5}{user "head"}} } } {Brain 0xa000 {Properties {control user} } } {Helpers {reinforcements {scoreTotal 0} {scoreCurrent 0} } } {Fog 1} }
HELP! :brickwall:
TommyB.
-
28-03-2011 #4
Re: No Control Over User Units
again, are you doing this for skirmish right? You want the units you add to be owned by player or players at the start right? I forgot you wanted to do that, in that case you have to select them, and hit W in editor then go to tags, you will have to add 3 tags to all the soldiers you added even those that go into vehicles etc:
player
player_start
start
Once you add all 3 of those tags to those soldiers you added and put into vehicles etc all those soldier will be assigned to player or players at start. You dont need to do that for vehicles I believe, just make sure they are all user control and player 2/ Skirmish Missions by DJSatane * DJSatane's Twitch Channel \
=======================================
\ DJSatane@Twitter * DJSatane's Steam Games Picture Library /
-
29-03-2011 #5Member
- Join Date
- Mar 2011
- Posts
- 8
- Rep Points
- 0
- Rep Power
- 3
Re: No Control Over User Units
Yes djsatane I'm doing this for skirmish and I want the player to own the units at the start of the map.
Unfortunately adding the tags still doesn't work for me! I guess I’m totally misunderstanding how this all works, like I’ve said before at the moment I’m just placing a unit on a map and trying to try it out in game, nothing else is in the map, no flags, no enemy, nothing! But I'm now thinking its not that simple. You see I've never used the GEM editor before, therefore I'm thinking along the lines of other game editors such as ArmA's game editor.
Looking at digitalmindsoft's tutorial map I see there are lots of triggers i.e. Start:Mission/Start:Skirmish and each one of those as many, many conditions and commands so I'm guessing thats what I’m missing, but I can't make Head nor Tail of it!
I'll keep at it for a little while longer, but I have to say my head is about to explode! And no mater how hard I look for a good tutorial I just can't find one!
dsatane, if you or anyone else reading this can put a man on a map (any map) so it works in game and Rar it up for me to download I would forever be in your debt!
TommyB.
:x
-
29-03-2011 #6Member
- Join Date
- Mar 2011
- Posts
- 8
- Rep Points
- 0
- Rep Power
- 3
Re: No Control Over User Units
It sounds like your putting the units onto the blank map file, what you need to do is read Instinct's tutorial on modding skirmish maps (stickied), in there will be the info you need to get the mission files into the editor. When in the editor (after you have unpacked the maps into your mod directory), right after starting, hit F3 and load the map files from that section, you'll notice a scripts and units subdirectory now. Thaat units file is what you need to edit.
-
31-03-2011 #7Member
- Join Date
- Mar 2011
- Posts
- 8
- Rep Points
- 0
- Rep Power
- 3
Re: No Control Over User Units
Hallelujah...
After many hours of banging my head against the wall I've finally worked out how to take a map, any map, and build your own mission upon it. For example, at the moment I'm playing around with the 4v4 Town map and creating a single player/skirmish map. Its nothing serious, its just a way for me to learn the editor.
Anyway, for those that are interested...
After loading a (blank (F2)) map you have to create a 'GameZone' and then stretch the 4 points to cover the map, after that you simply add player unit/s and give them a tag such as 'Player_start'. The number you use doesn't seem to matter, I've tested it with Player 0/Player 1 and Player 2, but I'd take the advice of djsatane and stick with player 2, after all thats the way digitalmindsoft seem to do it. Once you've done that you then make a trigger and in the commands you firstly add a delay of a few sec's (Enough time for the game to load) then add another command called 'autoassign' and alter the selector so the tag reads 'player_start' and the zone reads 'GameZone' and thats it!
Save in F3 mode and name the file 0.mi, now copy and move all the files over to your mod file, activate it, start the game, and bob's your uncle!
Thanks for your help djsatane and Bobby Woll, it sent me on the right tracks to sorting this out!
TommyB.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)




Reply With Quote

Bookmarks