Costume mods - update 16 oct. 2014 : *Heavy* update (2 Viewers)

mike

Casual Client
Joined
Feb 4, 2012
Re: Costume mods - update 15 sept. 2014 : Uchiha Madara

Faceless said:
Ugh, just looking at that is a boner kill.

I suppose death by snu snu fetish works both ways :P. Not my thing either.

Anyway, so the flash code version of the box is working great, I can switch between frames and all.

The only flaw is that focusing thing. I've looked upon and tried dozens of variations of your line but nothing worked. Keyboard is stuck unless I use a text box from SDT and then switch menus. Maybe I'm just not putting it where I should.

The ListBox didn't work...and frankly I don't want to dig up to find out why. The other one is working and that's fine to me.
 

ModGuy

Content Creator
Joined
Feb 17, 2011
Re: Costume mods - update 15 sept. 2014 : Uchiha Madara

nooooooo
whyyyyyy
mike why

Pass a FLA or something.
 

Faceless

Content Creator
Joined
Jun 12, 2011
Re: Costume mods - update 15 sept. 2014 : Uchiha Madara

Mike said:
The only flaw is that focusing thing. I've looked upon and tried dozens of variations of your line but nothing worked. Keyboard is stuck unless I use a text box from SDT and then switch menus. Maybe I'm just not putting it where I should.
It goes in the modPage with the rest of the code defining the list (not frame 1 scene 1!).
 

mike

Casual Client
Joined
Feb 4, 2012
Re: Costume mods - update 15 sept. 2014 : Uchiha Madara

MG said:
nooooooo
whyyyyyy
mike why

Pass a FLA or something.

Lol, congrats you made me feel guilty. I'll give it another go.

Faceless said:
It goes in the modPage with the rest of the code defining the list (not frame 1 scene 1!).

Working now, there was code location and the missing D in focusEnableD. Kinda terrible for SDT to lack the D isn't it ? 8)
 

ModGuy

Content Creator
Joined
Feb 17, 2011
Re: Costume mods - update 15 sept. 2014 : Uchiha Madara

I get that it's not working for you, that's why I'm looking for a FLA, it would be easier to work with. Alternatively you can send your current code.
 

mike

Casual Client
Joined
Feb 4, 2012
Re: Costume mods - update 15 sept. 2014 : Uchiha Madara

Here you go :

Code:
/*	v0.96.2 change log
	added code for handjob mode support
	added right handjob mode fingers
*/

import flash.events.Event;
import flash.utils.Timer;
import flash.events.TimerEvent;

var main;
var page:modPage;
var ListBox:Class; //Important! Declares custom class - actual definition handled by loader
var princeList;
var labels:Array = [
 "full shirt", 
 "one sleeve",
 "no sleeves",
 "no shirt"
];

if (this.parent.parent != null){
	main = this.parent.parent;
	var i:uint;

	main.g.inGameMenu.loadData("hisSkin:0;hisTop:none,238,242,245,1;hisBottoms:none,27,29,29,1;hisFootwear:none,0,0,0,1"); //if white

	page = new modPage();
 main.addPage(page, false);

 princeList = new ListBox(200, 96);
 main.addIn(princeList, page);
 princeList.y = 40;
 princeList.x = 150;
 
 for(var t:uint = 0; t < 4; t++) {
  princeList.addItem(labels[t], t);
 }
 
 princeList.addEventListener("listboxChanged", itemSelect);


	//---------------------------his components---------------------------\\
		//---------------------------left foot
/**/	var hfootl=new hisfootl();
	
	//adds as skin - follows HSL sliders on Options tab
	main.loadCustomFull(hfootl,".|Him.leftLeg.calf.foot","x:0;y:0;r:0;a:1");
	
	//---------------------------left calf
	var hcalfl=new hiscalfl();
	
	//adds as skin - follows HSL sliders on Options tab
	main.loadCustomFull(hcalfl,".|Him.leftLeg.calf","x:0;y:0;r:0;a:1");
	
	//---------------------------left thigh
	var hthighl=new histhighl();
	
	//adds as skin - follows HSL sliders on Options tab
	main.loadCustomFull(hthighl,".|Him.leftLeg","x:0;y:0;r:0;a:1");

	//---------------------------torso
	var htorso=new historso();
	main.loadCustomFull(htorso,".|Him.torsoLayer.torso","x:0;y:0;r:0;a:1");

//---------------------------right upper arm
	var hupperarm = new hisupperarm();
	main.him.armContainer.arm.upperArm.addChild(hupperarm);

	//---------------------------right forearm
	var hforearm = new hisforearm();
	main.him.armContainer.arm.lowerArm.addChild(hforearm);

	//---------------------------right hand
	var hhand = new hishand();
	main.him.armContainer.arm.hand.addChild(hhand);

	//---------------------------left upper arm
	var hupperarml = new hisupperarml();
	main.him.leftArmContainer.arm.addChild(hupperarml);

	//---------------------------left forearm
	var hforearml = new hisforearml();
	main.him.leftArmContainer.arm.foreArm.addChild(hforearml);

	//---------------------------left hand
	var hhandl = new hishandl();
	main.him.leftArmContainer.arm.foreArm.hand.addChild(hhandl);

	//---------------------------remove his components---------------------------\\

	main.registerToRemove(hupperarm);
	main.registerToRemove(hforearm);
	main.registerToRemove(hhand);
	main.registerToRemove(hupperarml);
	main.registerToRemove(hforearml);
	main.registerToRemove(hhandl);
//	main.registerToRemove(penis);
	
	
	var him = [hforearm, hupperarm, hthighl, hfootl, hcalfl, htorso, hupperarml, hhandl, hforearml, hhand]
	for each(var j:MovieClip in him) {
		j.stop();
	}
	
	main.unloadMod();
}
function itemSelect(event) {
 var item:String = event.listButton.textLabel.tf.text; //get list item label

 for each(var i:MovieClip in him) {
  i.gotoAndStop(item);  //go to frame label that matches list item label -
 }     //  use timeline and properties window to set frame labels

 switch(htorso.currentFrame) {  //pick out part that has multiple frames to get current frame number -
  case 1:    //  can also use frame label and do string match
   //frame 1 stuff
   break;

  case 2:
   //frame 2 stuff
   break;

  //...etc
 }
}

Problems start with this line : "princeList = new ListBox(200, 96);" --> the drawings disappear.
 

ModGuy

Content Creator
Joined
Feb 17, 2011
Re: Costume mods - update 15 sept. 2014 : Uchiha Madara

Mike said:
v0.96.2 change log

Mike said:
MG said:
OH MY.
That's some seriously outdated code.

Lol yeah apparently. I'm using 0.96.3 which is actually the version right before the current one.

HOW DID YOU GO BACK A VERSION
Anyway, there are so many improvements to this that I don't know where to begin.
I can't see outright why the code would error on creating the listbox unless the class wasn't set, which would only happen if it wasn't publicly accessible...
Consider upgrading the template for now, I'll work with Faceless to get UI stuff added.
 

mike

Casual Client
Joined
Feb 4, 2012
Re: Costume mods - update 15 sept. 2014 : Uchiha Madara

MG said:
HOW DID YOU GO BACK A VERSION

Because I'm a nostalgic guy....or more likely because I made the mod before 0.96.3 was out or before I started using it :). It's also probable I implemented the 0.96.3 updates in the 0.96.2 to avoid losing my custom stuff (yeah it also works the other way around but it was probably faster this way).

I prefer the old code and template so far, first because I understand it better and second because the new one modifies how costumes handle which is annoying when working on old mods.

Since I know how to handle the old code I can concentrate on drawings, which *fastens* mod creation. Just imagine if I used the new one ::).

MG said:
Anyway, there are so many improvements to this that I don't know where to begin.
I can't see outright why the code would error on creating the listbox unless the class wasn't set, which would only happen if it wasn't publicly accessible...
Consider upgrading the template for now, I'll work with Faceless to get UI stuff added.

Is there a particular problem with using the flash list box ? Because I have the mod working and ready to upload with it.
 

ModGuy

Content Creator
Joined
Feb 17, 2011
Re: Costume mods - update 15 sept. 2014 : Uchiha Madara

Nope, it's completely fine. It's bulky though.
 

mike

Casual Client
Joined
Feb 4, 2012
Dante said:
Those animated screens are pretty sweet. Also while I was looking though you mods, I was wondering if we're ever gonna see a Ben 10 him?
Gif, Dante, they're called gif ;).

Ben10 isn't planned at all, feel free to tackle it. I'm on two mods that will likely take a long while anyway.
 

VincentL

Vivacious Visitor
Joined
Apr 24, 2014
After looking at the thread title at first I was wondering if you made the Heavy from Team Fortress 2. (That would be in my "not sure if genius or disturbing" category just like the FemScout)

Lots of cool stuff here, though.
 

dantethedarkprince

Content Creator
Joined
Jun 15, 2012
Mike said:
Gif, Dante, they're called gif ;).
::)

Mike said:
Ben10 isn't planned at all, feel free to tackle it. I'm on two mods that will likely take a long while anyway.

I may if I feel froggy. I'm actually on the same thing. Pink and Yellow rangers, and still trying to come up with a her costume for Halloween.
 

Faceless

Content Creator
Joined
Jun 12, 2011
MG said:
HOW DID YOU GO BACK A VERSION
Anyway, there are so many improvements to this that I don't know where to begin.
I can't see outright why the code would error on creating the listbox unless the class wasn't set, which would only happen if it wasn't publicly accessible...
Consider upgrading the template for now, I'll work with Faceless to get UI stuff added.
Could it be a race condition? Maybe the fact that it's in a global macro rather than a method means that it's trying to instantiate the listBox before it registers the class definition? Not sure if that's remotely plausible.
 

ModGuy

Content Creator
Joined
Feb 17, 2011
initl is called after setup.
Mike uses "this.parent.parent" and therefore does not wait for setup.

Why you gotta discriminate, why's it always have to be about race.
 

sby

Content Creator
Coder
Joined
Sep 11, 2012
i always thought it was a race condition. when i was figuring out how to get it working it seemed to be inconsistent.
 

Kraag123

Potential Patron
Joined
Sep 1, 2013
Hello.I'm sorta new and cant get about that easily so i want ask you where is the ashoka tano suit coz i cant find it anywhere.Can anyone redirect me to the location of the .swf file pls
 

mryouallrock

Potential Patron
Joined
Jan 24, 2015
Definitely looking forward to a Sasuke Him when you decide to make him.

Until then, Madara x Usagi all day; let the Uchiha clan be restored!
 
J

joelittlebig

I don't know what the totally spies one means by maj. Can some one help explain that to me?
 

Users who are viewing this thread

Top


Are you 18 or older?

This website requires you to be 18 years of age or older. Please verify your age to view the content, or click Exit to leave.