14 Feb 18 - Mod.fla template v0.98.3 (1 Viewer)

Faceless

Content Creator
Joined
Jun 12, 2011
Re: 26 Mar 13 - Mod.fla template v0.96.2

Yes, by setting the right arm position to handjob before loading the fingers. It's only a problem because the reference to the right glove fingers doesn't seem to exist except in handjob mode.
 

gberna90

Potential Patron
Joined
Jul 4, 2013
Re: 26 Mar 13 - Mod.fla template v0.96.2

i try to make a newear mod, loader loads the new shape but under this the original ear doesn't disappear
the same doing eyebrows and head
how to cancel the old shape
 

Faceless

Content Creator
Joined
Jun 12, 2011
Re: 26 Mar 13 - Mod.fla template v0.96.2

Code:
for(var i = 0; i < _makemegoaway_.numChildren; i++)
    _makemegoaway_.getChildAt(i).visible = false;

where _makemegoaway_ is whatever you want to hide. Don't forget to make them visible again when unloading the mod.
 

One With The Shadows

Vivacious Visitor
Joined
Jul 7, 2013
Re: 26 Mar 13 - Mod.fla template v0.96.2

Faceless said:
Code:
for(var i = 0; i < _makemegoaway_.numChildren; i++)
    _makemegoaway_.getChildAt(i).visible = false;

where _makemegoaway_ is whatever you want to hide. Don't forget to make them visible again when unloading the mod.
So instead of:

Code:
for(var i = 0; i < _makemegoaway_.numChildren; i++)
    _makemegoaway_.getChildAt(i).visible = false;

It would be:

Code:
for(var i = 0; i < ear.numChildren; i++)
    ear.getChildAt(i).visible = false;

Correct?
 

Faceless

Content Creator
Joined
Jun 12, 2011
Re: 26 Mar 13 - Mod.fla template v0.96.2

If you've already defined ear, then sure. Otherwise you'll get some tasty null pointer exceptions.
 

mike

Casual Client
Joined
Feb 4, 2012
Re: 26 Mar 13 - Mod.fla template v0.96.2

Faceless said:
Yes, by setting the right arm position to handjob before loading the fingers. It's only a problem because the reference to the right glove fingers doesn't seem to exist except in handjob mode.

I've also got some issues with the right fingers that I can't figure out.

Code:
main.her.rightForeArmContainer.upperArmCostume.foreArmCostume.handCostume.glove.grip.addChild(fingerr);

Using this line will result in only the right hand loading. Right fingers, upperarm, chest, everything else don't load.

Code:
main.her.rightForeArmContainer.upperArm.foreArm.hand.grip.addChild(fingerr);

This one will work as long as I force the hands on handjob mode at start but as soon as I quit and come back to it fingers don't load anymore.

It seems the first line works for others so I may be missing something. No clue what it is though.
 

Faceless

Content Creator
Joined
Jun 12, 2011
Re: 26 Mar 13 - Mod.fla template v0.96.2

How are you doing handjob mode? Manually, or through ActionScript?
 

mike

Casual Client
Joined
Feb 4, 2012
Re: 26 Mar 13 - Mod.fla template v0.96.2

Faceless said:
How are you doing handjob mode? Manually, or through ActionScript?

Through ActionScript like this
main.g.inGameMenu.loadData("arms:handjob,handjob");

If I don't do that only the right hand will load, nothing else, like when I use the right fingers' "costume" line.
 

Faceless

Content Creator
Joined
Jun 12, 2011
Re: 22 Jan 14 - Mod.fla template v0.96.3

Oh, whoops. I'm actually using v0.96.3, which fixed this issue, and forgot to upload it. My bad.

Here's the updated code, if you don't want to switch templates.

Code:
	//---------------------------right hand
	var handr = new newhandr();

	//adds as skin - follows HSL sliders on Options tab
	main.her.rightForeArmContainer.upperArm.foreArm.hand.addChild(handr);

	//adds as costume - ignores HSL sliders on Options tab
	main.her.rightForeArmContainer.upperArmCostume.foreArmCostume.handCostume.addChild(handr);
	
	//---------------------------right fingers
	var fingerr = new newfingerr();
	
	//costume positioning
	fingerr.x = main.her.rightForeArmContainer.upperArm.foreArm.hand.grip.x;
	fingerr.y = main.her.rightForeArmContainer.upperArm.foreArm.hand.grip.y;
	fingerr.rotation = main.her.rightForeArmContainer.upperArm.foreArm.hand.grip.rotation;

	//---------------------------right handjob support
	handr.stop();
	main.her.addEventListener(Event.ENTER_FRAME,rhandpos);

Code:
//code for right hand job
function rhandpos(e:Event){
	if(main.her.currentRightArmPosition==3){
		handr.gotoAndStop("handjob");
		
		//adds as skin - follows HSL sliders on Options tab
		if(!main.her.rightForeArmContainer.upperArm.foreArm.hand.grip.contains(fingerr)){
			main.her.rightForeArmContainer.upperArm.foreArm.hand.grip.addChild(fingerr);
		}
		
		//adds as costume - ignores HSL sliders on Options tab
		if(!main.her.rightForeArmContainer.upperArmCostume.foreArmCostume.handCostume.glove.contains(fingerr)) {
			main.her.rightForeArmContainer.upperArmCostume.foreArmCostume.handCostume.glove.addChild(fingerr);
			main.her.rightForeArmContainer.upperArmCostume.foreArmCostume.handCostume.setChildIndex(
					main.her.rightForeArmContainer.upperArmCostume.foreArmCostume.handCostume.glove,
					handr);
		}
		
		fingerr.visible = true;
		fingerr.scaleY = main.her.rightForeArmContainer.upperArm.foreArm.hand.grip.scaleY;
	}
	else{
		handr.gotoAndStop("normal");
		fingerr.visible = false;
	}
}
 

mike

Casual Client
Joined
Feb 4, 2012
Re: 22 Jan 14 - Mod.fla template v0.96.3

Works like a charm. Thanks :).

Oh btw I noticed a bug around the thigh using this.
Code:
main.loadCustomFull(thighr,".|Her.torso.rightThighCostume","x:0;y:0;r:0;a:1");

Bug is part of the costume becomes invisible and the invisible part moves with the girl.
 

Attachments

  • screenshot0001.png
    screenshot0001.png
    299.3 KB · Views: 396

Faceless

Content Creator
Joined
Jun 12, 2011
Re: 22 Jan 14 - Mod.fla template v0.96.3

Well, yes. There's code included to disable and restore the thigh mask.
 

ModGuy

Content Creator
Joined
Feb 17, 2011
Re: 22 Jan 14 - Mod.fla template v0.96.3

Faceless, consider reading the dev guide and refining the template for the new loader mod style.
Example:

Old:

Code:
var main;

if (this.parent.parent != null){
	main = this.parent.parent;
	...
	main.unloadMod();
}

New:

Code:
var main;

function initl(l){
	main = l;
	...
	l.unloadMod();
}

Add in support for proxies to support things that may exist as constant checks such as arm positioning.
Modify assets that contain hardcoded offsets such as:

Code:
main.loadCustomFull(browrf,".|Her.rightEyebrow","x:38.5;y:27;r:0;a:1");

Such that the offsets are already applied to said objects.
And instead use something like:

Code:
main.loadManual(...);

So that you can remove the string literals entirely.

Allow the Loader to manage ENTER_FRAME events with:

Code:
addEnterFrame(f)		Calls f every frame till unloaded. f(l){}, l is loader.
addEnterFramePersist(f)		^ but will continue calling after unload.

If you adhere to these guidelines you will probably find better compatibility with other mods. I did a little testing and found that mods which load other mods are incompatible with loading your mods without adding them to stage due to the main.parent.parent etc.

Give it some thought.
 

mike

Casual Client
Joined
Feb 4, 2012
Re: 22 Jan 14 - Mod.fla template v0.96.3

Faceless said:
Well, yes. There's code included to disable and restore the thigh mask.

Hmmm, I missed that one then. I'll check.
 

Hanketsu

Content Creator
Joined
Jan 22, 2014
Re: 22 Jan 14 - Mod.fla template v0.96.3

I am only restricted to CS3 and want to be making my own costumes and stuff, nothing fancy, So is there a CS3 version available anywhere. it would be greatly appreciated thanks.
 

Faceless

Content Creator
Joined
Jun 12, 2011
Re: 22 Jan 14 - Mod.fla template v0.96.3

I don't think CS5.5 even has an option to export to CS3.

EDIT: Nope, it doesn't. CS4 is as far back as it goes.
 

Faceless

Content Creator
Joined
Jun 12, 2011
Re: 22 Feb 14 - Mod.fla template v0.96.4

MG said:
Faceless, consider reading the dev guide and refining the template for the new loader mod style.
*snip*
Welp, that should be done, I think. As always, let me know if anything's broken.
 

WeeWillie

Content Creator
Joined
Nov 8, 2013
Re: 22 Feb 14 - Mod.fla template v0.96.4

I'm trying to make a thigh body mod, and before doing anything, I tried making the outlines appear. Though the calf is correct, the thigh is not lined up. What am I doing wrong? See the image below for what I mean.
 

Attachments

  • TestThigh.png
    TestThigh.png
    110.8 KB · Views: 297

Faceless

Content Creator
Joined
Jun 12, 2011
Re: 22 Feb 14 - Mod.fla template v0.96.4

Huh. Weird. For now, change the target path to main.her.torso.leg.

Or alternatively, unlock the template layers, select them both, and set them to position (0,2). You'll also need to add this line for the thigh costume:
Code:
main.XYRA(thighr, "x:-141.5;y:-141;r:0;a:1");
 

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.