FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CODE: multiple uniques on arenas

 
Post new topic   Reply to topic    Drop Shock Forum Index -> Open Source
View previous topic :: View next topic  
Author Message
khaibar
Advanced


Joined: 14 Dec 2007
Posts: 1141

PostPosted: Sun Dec 16, 2012 2:48 am    Post subject: CODE: multiple uniques on arenas Reply with quote

Files:
deploy_arena.php
process_deploy_arena.php
process_deploy.php


deploy_arena.php on line 113

insert

Code:
<input type=checkbox onfocus='this.blur();' id='allowMU' name='allowMU' class='checkB' checked> <label for='allowMU'>Allow Multiple Unique</label><br>


process_deploy_arena.php on line 70

insert

Code:
if ($_POST["allowMU"] != "on") { $pText .= "\$pOpt['allowMU'] = 'N';\n";"; } else { $pText .= "\$pOpt['allowMU'] = 'Y';\n"; $pDesc .= "<span class='alerttext'>Multiple Unique allowed</span><br>



process_deploy.php on line 549

before

Code:
if (isset($unique_list[($unit["i_type_id"])])) {
         $can_drop = "unique";
         $rMessage = $allunits["UNITS"]["UNIT"][($unit["i_type_id"])]['NAME']['VALUE'];
      }


after

Code:
if (isset($unique_list[($unit["i_type_id"])])) {
         if (($planet_arena!="Y") OR (($planet_arena=="Y") AND ($pOpt['allowMU'] == 'N')))
         {$can_drop = "unique";
         $rMessage = $allunits["UNITS"]["UNIT"][($unit["i_type_id"])]['NAME']['VALUE'];}
      }


on line 764

before

Code:
   if (isset($uniqueMod_list[($mod["i_type_id"])])) {
            $can_drop = "uniqueM";
            $rMessage = $allmods['MODS']['MOD'][($mod["i_type_id"])]['NAME']['VALUE'];
         }


after

Code:
if (isset($uniqueMod_list[($mod["i_type_id"])])) {
         if (($planet_arena!="Y") OR (($planet_arena=="Y") AND ($pOpt['allowMU'] == 'N')))
         {
            $can_drop = "uniqueM";
            $rMessage = $allmods['MODS']['MOD'][($mod["i_type_id"])]['NAME']['VALUE'];
         }}


on line 1988

before

Code:
if (isset($uniqueBuilding_list[($buildingtype[$i])])) {
               $can_drop = "uniqueB";
               $rMessage = $allbuildings["BUILDINGS"]["BUILDING"][$buildingtype[$i]]['NAME']['VALUE'];
            }


after

Code:
   if (isset($uniqueBuilding_list[($buildingtype[$i])])) {
            if (($planet_arena!="Y") OR (($planet_arena=="Y") AND ($pOpt['allowMU'] == 'N')))
         {
               $can_drop = "uniqueB";
               $rMessage = $allbuildings["BUILDINGS"]["BUILDING"][$buildingtype[$i]]['NAME']['VALUE'];
            }}


The tag is shared amongst all, if people like it i will make separate tags for units/mods/buildings


ticket link: https://sourceforge.net/p/dropshock/tickets/31/


Last edited by khaibar on Thu Dec 27, 2012 3:43 am; edited 1 time in total
Back to top
View user's profile Send private message
Dark Leth
Council Member


Joined: 05 Jul 2005
Posts: 1498

PostPosted: Sun Dec 16, 2012 3:26 pm    Post subject: Reply with quote

Support.
Back to top
View user's profile Send private message
sirstephen
Hopeless Romantic


Joined: 01 Jun 2008
Posts: 181

PostPosted: Thu Dec 20, 2012 10:41 am    Post subject: Reply with quote

support
Back to top
View user's profile Send private message AIM Address
Slayer_666
Council Member


Joined: 20 Dec 2012
Posts: 226

PostPosted: Thu Dec 20, 2012 11:46 am    Post subject: Reply with quote

Support.


Slayer
Back to top
View user's profile Send private message
khaibar
Advanced


Joined: 14 Dec 2007
Posts: 1141

PostPosted: Thu Dec 27, 2012 3:44 am    Post subject: Reply with quote

pushed

need one more vote to get this through
Back to top
View user's profile Send private message
SpaceGhost
Mentor


Joined: 07 Sep 2007
Posts: 57

PostPosted: Thu Dec 27, 2012 8:31 am    Post subject: Reply with quote

Support
Thanks SpaceGhost
Back to top
View user's profile Send private message
Walterohdim
Site Admin


Joined: 15 Jun 2006
Posts: 1629
Location: Somewhere with lots of doors

PostPosted: Thu Dec 27, 2012 6:01 pm    Post subject: Reply with quote

support
_________________
Wannabee historian of Tinywarz. Through the building of myth we will build community. M. Scott Peck

Back to top
View user's profile Send private message Visit poster's website
Dark Leth
Council Member


Joined: 05 Jul 2005
Posts: 1498

PostPosted: Thu Dec 27, 2012 11:31 pm    Post subject: Reply with quote

This has passed with a majority of votes.
Back to top
View user's profile Send private message
haloguy48
Advanced


Joined: 12 Jul 2006
Posts: 1221
Location: Looking for Group archives

PostPosted: Mon Feb 11, 2013 2:04 pm    Post subject: Reply with quote

To my knowledge this was never implemented.. Checking the Arena w/o using one it seems like theres no option for it as well.
_________________
Check out my Created Construx, all feedback welcomed! I'll start you out on the newer stuff, so just scroll down! Razz
http://forum.mobrulestudios.com/viewtopic.php?p=149822#149822
Back to top
View user's profile Send private message
Dark Leth
Council Member


Joined: 05 Jul 2005
Posts: 1498

PostPosted: Thu Apr 04, 2013 11:06 am    Post subject: Reply with quote

Waiting on Frizz IIRC.
Back to top
View user's profile Send private message
khaibar
Advanced


Joined: 14 Dec 2007
Posts: 1141

PostPosted: Thu Apr 04, 2013 11:59 am    Post subject: Reply with quote

code was never pushed to its own branch.

The push mentioned here before belonged to a shard branch that doesn't exist anymore.

Code should be good, if you guys want it get eV or lark or kris to push the code unless you are waiting for some comment from frizz (not gona happen unless you ask).

Same applies to codes in Work-needed section (1 of my old tickets (#34) and 2 of Vanoi's (#57 #62) and 1 wacky ticket of lark's (#69)).
Back to top
View user's profile Send private message
Dark Leth
Council Member


Joined: 05 Jul 2005
Posts: 1498

PostPosted: Thu Apr 04, 2013 2:51 pm    Post subject: Reply with quote

khaibar wrote:
code was never pushed to its own branch.

The push mentioned here before belonged to a shard branch that doesn't exist anymore.

Code should be good, if you guys want it get eV or lark or kris to push the code unless you are waiting for some comment from frizz (not gona happen unless you ask).

Same applies to codes in Work-needed section (1 of my old tickets (#34) and 2 of Vanoi's (#57 #62) and 1 wacky ticket of lark's (#69)).


Someone will push it, thanks.
Back to top
View user's profile Send private message
khaibar
Advanced


Joined: 14 Dec 2007
Posts: 1141

PostPosted: Sat Apr 06, 2013 4:41 am    Post subject: Reply with quote

okz just make sure that person double checks everything.

I think i missed something when I copied the second code insert to forum and SF

Code:
if ($_POST["allowMU"] != "on") { $pText .= "\$pOpt['allowMU'] = 'N';\n";"; } else { $pText .= "\$pOpt['allowMU'] = 'Y';\n"; $pDesc .= "<span class='alerttext'>Multiple Unique allowed</span><br>


should be
Code:
if ($_POST["allowMU"] != "on") { $pText .= "\$pOpt['allowMU'] = 'N';\n";"; } else { $pText .= "\$pOpt['allowMU'] = 'Y';\n"; $pDesc .= "<span class='alerttext'>Multiple Unique allowed</span><br>";}

or something, whoever wishes to do this please double check and compare to other similar codes/updates first.

I don't want another dominus update and people blaming me for something I long abandoned 5 month ago.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Drop Shock Forum Index -> Open Source All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group