IPB

Welcome Guest ( Log In | Register )

> LocUnlock v1, Modders finally get locations in melee!
poiuy_qwert    Canada
Sep 14 2008, 08:53 PM    Post #1
LocUnlock is an MPQDraft and FireGraft v0.93 plugin supporting SC:BW versions 1.15.1 to 1.15.3 (1.15.2 and 1.15.3 are currently not supported by FireGraft v0.93), designed to allow modders the use of locations in game types other then Use Map Settings. The two things you can do with this plugin is make the Anywhere location cover the whole map with all elevation levels, or set one or more values (top left x/y, bottom right x/y, and elevation flags) of any location you want.

Download: Attached File  LocUnlock.zip ( 35.02K ) Number of downloads: 391


Usage:
LocUnlock uses the EnableDebugMode (which is currently only supported by PyTRG) action to edit locations, and takes its parameters from the Start Locations (unit 214) death count of different players:
Player 2: Location number
Player 3: Values to change (bitmask: 1 = top left X, 2 = top left Y, 4 = bottom right X, 8 = bottom right Y, 16 = flags)
Player 4: Top left X
Player 5: Top left Y
Player 6: Bottom right X
Player 7: Bottom right Y
Player 8: Elevation flags (bitmask: 1 = Low Elevation, 2 = Medium Elevation, 4 = High Elevation, 8 = Low Air, 16 = Medium Air, 32 = High Air)

If the Location number or Values to change is 0, then the Anywhere location is automatically set to cover the whole map with all flags set (like how it starts for UMS maps).




MPQDraft Installation/Application:
1) Extract LocUnlock.qdp to your MPQDraft folder
2) When creating a SEMPQ or loading an MPQ patch, make sure the "LocUnlock v1" plugin checkbox is checked


FireGraft v0.93 Installation/Application:
1) Extract LocUnlock.qdp to your FireGraft folder
2) When editing your project, go to the Plugins tab
3) Click tha add Add button under MPQDraft plugin, and select LocUnlock.qdp

Examples:
Make Anywhere cover the whole map at the start of the game:
CODE
Trigger(All Players):
    Conditions:
        Always()
    Actions:
        EnableDebugMode()


Cover 2x2 square of tiles in the top left with location 1 when switch 1 is set:
CODE
Trigger(All Players):
    Conditions:
        Switch(1, Set)
    Actions:
        SetDeaths(Player 2, Start Location, Set To, 1)
        SetDeaths(Player 3, Start Location, Set To, 31)
        SetDeaths(Player 4, Start Location, Set To, 0)
        SetDeaths(Player 5, Start Location, Set To, 0)
        SetDeaths(Player 6, Start Location, Set To, 64)
        SetDeaths(Player 7, Start Location, Set To, 64)
        SetDeaths(Player 8, Start Location, Set To, 63)
        EnableDebugMode()



Credits:
bajadulce: Giving me the idea to make this and for hosting!
Doodle: Some code I used to learn from
A_of-s_t: Helping, and being cool
DiscipleOfAdun: Supplied function to get the SC version and for mucho grande help!


 
Go to the top of the page +

Posts in this topic
poiuy_qwert   LocUnlock v1   Sep 14 2008, 08:53 PM
A_of_s_t   I dont know which forum to post on, so Ill just po...   Sep 14 2008, 09:12 PM
poiuy_qwert   Im glad you like it. I have had so many ideas that...   Sep 15 2008, 05:35 PM
Hercanic   Dear Poiuy Qwert: I was just reading your post, an...   Sep 30 2008, 06:36 PM
poiuy_qwert   I'm just happy it can be put to use. I'm t...   Sep 30 2008, 06:42 PM
bajadulce   I guess this is where Help/Discussion of this prog...   Oct 2 2008, 02:26 PM
poiuy_qwert   Ok well I finally get a chance to look at this aga...   Oct 29 2008, 04:22 PM
bajadulce   Can you upload an example SEMPQ + the triggers use...   Nov 4 2008, 04:45 PM
poiuy_qwert   1) I've tested it on v2008.4.6.1 and v2008.8.2...   Nov 4 2008, 05:47 PM
bajadulce   For whatever reason, my MPQDraft still crashes eve...   Jan 7 2009, 10:18 PM
ForTheSwarm   I would make shit with this. In fact, it's an ...   Jan 8 2009, 03:08 PM
poiuy_qwert   Well obviously you are doing something wrong, or t...   Jan 8 2009, 04:23 PM
ForTheSwarm   I did tell you the results of my test- it didn...   Jan 9 2009, 02:30 PM
bajadulce   QUOTE(ForTheSwarm @ Jan 9 2009, 02:30 PM)...   Jan 9 2009, 03:16 PM
ForTheSwarm   QUOTE(bajadulce @ Jan 9 2009, 05:16 PM) S...   Jan 9 2009, 07:38 PM
bajadulce   Please don't waste our member's time by po...   Jan 9 2009, 08:22 PM
ForTheSwarm   Sorry for being too vague. I will try to explain m...   Jan 10 2009, 07:47 AM
modmaster50   It seems that "Anywhere" doesnt work (at...   Jan 10 2009, 06:09 PM
bajadulce   @ Swarm, do your triggers for changing shields for...   Jan 10 2009, 09:54 PM
modmaster50   Can you help me compile this? Its a modified LocUn...   Jan 10 2009, 10:38 PM
ForTheSwarm   QUOTE(bajadulce @ Jan 10 2009, 11:54 PM) ...   Jan 11 2009, 11:59 AM
modmaster50   Guys, Im trying to compile now that I have VC++ 20...   Jan 11 2009, 07:01 PM
poiuy_qwert   QUOTE(modmaster50 @ Jan 10 2009, 09:09 PM...   Jan 12 2009, 04:40 PM
modmaster50   QUOTE(poiuy_qwert @ Jan 12 2009, 04:40 PM...   Jan 12 2009, 04:49 PM
poiuy_qwert   The Anywhere location is correct, i've tested ...   Jan 15 2009, 06:57 PM
modmaster50   Yeah, Im currently using a workaround to get the b...   Jan 16 2009, 01:11 PM
poiuy_qwert   Yes it would be. Learn reverse engineering which ...   Jan 16 2009, 01:23 PM
poiuy_qwert   Alright I have yet to figure out why some triggers...   Mar 11 2009, 11:40 AM
bajadulce   Just curious if there are any mods out there that ...   May 25 2009, 06:23 PM


Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 10th September 2010 - 12:35 AM