Holland Posted January 25, 2017 Share Posted January 25, 2017 First you need to open your map file which is in your tiberian sun directory: ..\TiberianSun_Online\Maps\ If you've never opened a map (mpr) file before, you have to right click on the file, press 'Open With..' and select Wordpad. Now open up your map file and (if there are no mods) you will see codes like this: ; Map created with FinalSun Mission Editor [Preview] Size=0,0,120,60 [PreviewPack] 1=JQ0AIAZtVz1vWT5vWT5AAUsAb1k+SABAAUgAQAFIAEABSABAAUgAQAFIAEABSABAAUgAQA and a whole bunch of other symbols. We have to add this code, anywhere between lines in the map: [AllyBySpawnLocation1] Description=East vs West A=0,1,2,3 B=4,5,6,7 You can edit the numbers how ever you want your spawn location to team up. There is one thing you need to know: As you can see there is a '0' in team A. this is actually Spawn Location nr 1, just like in Final sun. So just to make it seem easier for you, here is an example for how it can look: ; Map created with FinalSun Mission Editor [AllyBySpawnLocation1] Description=East vs West A=0,1,2,3 B=4,5,6,7 [Preview] Size=0,0,120,60 [PreviewPack] 1=JQ0AIAZtVz1vWT5vWT5AAUsAb1k+SABAAUgAQAFIAEABSABAAUgAQAFIAEABSABAAUgAQA Now for the second part, We have to find a something in the file In wordpad, go ahead and press Ctrl+F (or press Find). Search this: [basic] You will this: [basic] Name=Your map name Percent=0 GameMode=standard HomeCell=98 InitTime=10000 Official=yes EndOfGame=no morecodes etc. Now add this line anywhere under [basic]: AllyBySpawnDefault=1 So it will look like this: [basic] AllyBySpawnDefault=1 Name=Your map name Percent=0 GameMode=standard HomeCell=98 InitTime=10000 Official=yes EndOfGame=no morecodes etc. Go ahead and save your file (Ctrl+S) Thats it! If you somehow can not save the original file, and your PC asks you to save it under a copy, you can do the following: make a copy of your map file (ctrl+C & Ctrl V), copy all the text (ctrl+A & ctrl+C), and place it in the cloned file. It should save now. If you have trouble or you want to fix this issue, reply and ask Link to comment Share on other sites More sharing options...
Messiah Posted January 25, 2017 Share Posted January 25, 2017 Does that work with every version of TS or is that a custom code later added by hex editing? I never have seen that before in any map. Link to comment Share on other sites More sharing options...
Holland Posted January 25, 2017 Author Share Posted January 25, 2017 Does that work with every version of TS or is that a custom code later added by hex editing? I never have seen that before in any map. Yes Messiah I believe Rosssi edited this in the exe file just a few months ago Link to comment Share on other sites More sharing options...
dkeeton Posted January 26, 2017 Share Posted January 26, 2017 AllyBySpawnLocation was added to the cncnet version of Tiberian Sun just this summer. https://github.com/CnCNet/ts-patches/blob/d83438f39ba51d5fab315fe80578016d6678c12d/src/spawner/auto_ally_by_spawn_loc.c The OP, Holland presented a great description and tutorial on how to make it work in you maps, but in fact there's more. The AllyBySpawnLocation mechanism allows for multiple profiles to be built so that a single map could work as "East vs West" and "North vs South" and "2v2v2v2" . Hence [AllyBySpawnLocation1], with emphasis on the 1. As of writhing this Jan 26, 2017, no Tiberian Sun client can support multiple AllyBySpanwLocation profiles, so this default tutorial describes the best way to do AllyBySpawnLocation for now. Link to comment Share on other sites More sharing options...
Holland Posted January 27, 2017 Author Share Posted January 27, 2017 AllyBySpawnLocation was added to the cncnet version of Tiberian Sun just this summer. https://github.com/CnCNet/ts-patches/blob/d83438f39ba51d5fab315fe80578016d6678c12d/src/spawner/auto_ally_by_spawn_loc.c The OP, Holland presented a great description and tutorial on how to make it work in you maps, but in fact there's more. The AllyBySpawnLocation mechanism allows for multiple profiles to be built so that a single map could work as "East vs West" and "North vs South" and "2v2v2v2" . Hence [AllyBySpawnLocation1], with emphasis on the 1. As of writhing this Jan 26, 2017, no Tiberian Sun client can support multiple AllyBySpanwLocation profiles, so this default tutorial describes the best way to do AllyBySpawnLocation for now. Oh wow, i was wondering why that 1 was there! thanks for clearing that up! So just to make it clear, you can have [AllyBySpawnLocation] in your map, and [AllyBySpawnLocation1] and [AllyBySpawnLocation2] and [AllyBySpawnLocation3] in your map too? Or is it numbered 1 to 4? And just like allying in game, a player can be part of multiple teams too so you can mix up the numbers too. That could be interesting gameplay hihi Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now