Jump to content

Photo

Portraits and Various and Sundry Materials

npc mod development portraits weidu tp2 coding aran whitehand

72 replies to this topic

#61 berelinde

berelinde

    The Typo Queen

  • Gibberlings
  • 8594 posts
  • Gender:Male
  • Location:New Jersey, USA

Posted 05 July 2010 - 05:54 AM

Ooh, this one's my new favorite, I think.
Must. Write. Faster.

cmorgan: "None of us get old around here, just more proficient at doing more stuff with less braincells!"

berelinde's mods
TolkienAcrossTheWater website
TolkienAcrossTheWater Forum

#62 KathStoneDog

KathStoneDog
  • Members
  • 84 posts

Posted 05 July 2010 - 06:34 AM

I'm now fixated on Sean-Bean-as-Aran :)

When we get to launch, can someone help me out with inserting a suitable photo? I do understand that we are getting so many desireable images that they probably can't all be included.

Kath Stonedog

#63 cmorgan

cmorgan

    journeyman investigator

  • Gibberlings
  • 7097 posts
  • Gender:Male
  • Location:Glencoe, IL, USA

Posted 05 July 2010 - 08:48 AM

Cool stuff! As for too many choices, since this is a player choice Companion and I have been tutorializing, I am planning on adding instructions for customization of everything in the docs. But it brings up an interesting idea - trying an "Add Your own portrait" choice to the darned thing. Could work two ways - gep all .bmp names, reset .cre to use portrait chosen... or perhaps simply a "drop the portrait you want into the mod folder 'custom_portrait' and use weidu to copy and rename whatever it finds there". Either way, it would require some checks to make sure the .bmps are valid, but there has to be a simple way to do this.
I love deadlines. I love the whooshing noise they make as they go by. - Douglas Adams

#64 McMazey

McMazey
  • Members
  • 13 posts
  • Gender:Female

Posted 05 July 2010 - 10:40 AM

This might not be a correct way to do it, but what I usually do is just rename the bmps I want to whatever the file names are for the mod portraits, and just drop them into the override folder. And so far *touches wood* it has always worked just fine. (Of course, if you have to reinstall, you would have to do it all over again. But, it is a quick way to put in a portrait of your choice :) )
"When you break rules, break 'em good and hard." ~Nanny Ogg Wyrd Sisters


#65 cmorgan

cmorgan

    journeyman investigator

  • Gibberlings
  • 7097 posts
  • Gender:Male
  • Location:Glencoe, IL, USA

Posted 19 August 2010 - 10:56 AM

And the code to integrate almost all of the above in one component. If folks want to process their submissions further, way cool - if not, I will try to work from the .jpg or .png provided to create the three sizes (Nix and 2 of berelinde's ones are already done that way). Presented in alphabetical order by screenname, except for Nix's, which is the default 9and if a player skips this or exits, the .cre ships with Nix's work).

Code follows:
BEGIN ~Choose Aran's Portrait~
  REQUIRE_COMPONENT ~setup-aranw.tp2~ ~0~ ~Aran Whitehand must be installed for this to work.~

OUTER_SPRINT ~arportrait~ ~There are many alternate portraits from which to choose. You may want to consult the ReadMe before choosing.~
OUTER_WHILE (!(IS_AN_INT ~arportrait~) OR (~arportrait~ > 0xd) OR (~arportrait~ < 0x1)) BEGIN
  PRINT ~Please enter your choice and press return:
[1] Keep Nix's "Default" portrait set (fair hair, fair complexion) 
[2] berelinde's "Boromir" style (dark brown hair, fair complexion) 
[3] berelinde's "Dragon Age" style (dark hairr, dark complexion) 
[4] berelinde's "Scruffy" style (light brown hair, fair complexion)  
[5] McMazey's "Don Pedro" style (dark hair, dark complexion) 	  
[6] McMazey's "Fantasy Photo" style (long brown hair, light complexion) 
[7] McMazey's "Bearded" style (dark hair, light complexion) 
[8] McMazey's "No Beard" style (dark hair, light complexion) 
[9] McMazey's "Horatio Photo" style (dark hair, light complexion) 
[10] Peachplums' "Young Fighter" style (red hair, fair comlpexion) 
[11] piperb's "Stalwort Bearded Young" style (light brown hair, fair complexion) 
[12] piperb's "Mature Bearded" style (dark brown hair, medium complexion) 
[13] piperb's "Stalwort Young" style (light brown hair, fair complexion) ~
  ACTION_READLN ~arportrait~
END  
ACTION_IF ("arportrait" = 0x1) THEN BEGIN /* Nix's "Default" portrait set ( fair hair, fair complexion) */
	COPY ~aranw/media/nix_defaultl.bmp~ ~override/c-aranwl.bmp~ 
	COPY ~aranw/media/nix_defaultm.bmp~ ~override/c-aranwm.bmp~ 
	COPY ~aranw/media/nix_defaults.bmp~ ~override/c-aranws.bmp~
	COPY_EXISTING ~c-aran.cre~ ~override~
		WRITE_BYTE 0x2F 12 /* skin color (light carnation pink) */
		WRITE_BYTE 0x32 3  /* hair color (light gold) */
	PRINT ~Nix's "Default" portrait set (fair hair, fair complexion) installed.~
END	  
ACTION_IF ("arportrait" = 0x2) THEN BEGIN /*  Berelinde's "Boromir" style (dark brown hair, fair complexion) */
	COPY ~aranw/media/berelinde_borl.bmp~ ~override/c-aranwl.bmp~ 
	COPY ~aranw/media/berelinde_borm.bmp~ ~override/c-aranwm.bmp~ 
	COPY ~aranw/media/berelinde_bors.bmp~ ~override/c-aranws.bmp~
	COPY_EXISTING ~c-aran.cre~ ~override~
		WRITE_BYTE 0x2F 12 /* skin color (light carnation pink) */
		WRITE_BYTE 0x32 3  /* hair color (light gold) */
	PRINT ~Berelinde's "Boromir" style (dark brown hair, fair complexion) installed.~
END
ACTION_IF ("arportrait" = 0x3) THEN BEGIN  /*  Berelinde's "Dragon Age" style (dark hair, dark complexion) */
	COPY ~aranw/media/berelinde_dal.bmp~ ~override/c-aranwl.bmp~ 
	COPY ~aranw/media/berelinde_dam.bmp~ ~override/c-aranwm.bmp~ 
	COPY ~aranw/media/berelinde_das.bmp~ ~override/c-aranws.bmp~
	COPY_EXISTING ~c-aran.cre~ ~override~
		WRITE_BYTE 0x2F 91 /* skin color (dark chocolate) */
		WRITE_BYTE 0x32 0  /* hair color (red-tinted black) */
	PRINT ~Berelinde's "Dragon Age" style (dark hair, dark complexion) installed.~
END
ACTION_IF ("arportrait" = 0x4) THEN BEGIN /*  Berelinde's "Scruffy" style (light brown hair, fair complexion)  */
	COPY ~aranw/media/berelinde_scruffyl.bmp~ ~override/c-aranwl.bmp~ 
	COPY ~aranw/media/berelinde_scruffym.bmp~ ~override/c-aranwm.bmp~ 
	COPY ~aranw/media/berelinde_scruffys.bmp~ ~override/c-aranws.bmp~
	COPY_EXISTING ~c-aran.cre~ ~override~
		WRITE_BYTE 0x2F 12 /* skin color (light carnation pink) */
		WRITE_BYTE 0x32 3  /* hair color (light gold) */
	PRINT ~Berelinde's "Scruffy" style (light brown hair, fair complexion) installed.~
END
ACTION_IF ("arportrait" = 0x5) THEN BEGIN  /*  Macmazey's  "Don Pedro" style (dark hair, dark complexion) */	 
	COPY ~aranw/media/macmazey_donpedrol.bmp~ ~override/c-aranwl.bmp~ 
	COPY ~aranw/media/macmazey_donpedrom.bmp~ ~override/c-aranwm.bmp~ 
	COPY ~aranw/media/macmazey_donpedros.bmp~ ~override/c-aranws.bmp~
	COPY_EXISTING ~c-aran.cre~ ~override~
		WRITE_BYTE 0x2F 91 /* skin color (dark chocolate) */
		WRITE_BYTE 0x32 0  /* hair color (red-tinted black) */
	PRINT ~Macmazey's "Don Pedro" style (dark hair, dark complexion) installed.~
END
ACTION_IF ("arportrait" = 0x6) THEN BEGIN  /*  Macmazey's "Fantasy Photo" style (long brown hair, light complexion) */
	COPY ~aranw/media/macmazey_longhairl.bmp~ ~override/c-aranwl.bmp~ 
	COPY ~aranw/media/macmazey_longhairm.bmp~ ~override/c-aranwm.bmp~ 
	COPY ~aranw/media/macmazey_longhairs.bmp~ ~override/c-aranws.bmp~
	COPY_EXISTING ~c-aran.cre~ ~override~
		WRITE_BYTE 0x2F 12 /* skin color (light carnation pink) */
		WRITE_BYTE 0x32 2  /* hair color (dark gold) */
	PRINT ~Macmazey's "Fantasy Photo" style (long brown hair, light complexion) installed.~
END
ACTION_IF ("arportrait" = 0x7) THEN BEGIN /*  Macmazey's  "Bearded" style (dark hair, light complexion) */
	COPY ~aranw/media/mcmazey_beardl.bmp~ ~override/c-aranwl.bmp~ 
	COPY ~aranw/media/mcmazey_beardm.bmp~ ~override/c-aranwm.bmp~ 
	COPY ~aranw/media/mcmazey_beards.bmp~ ~override/c-aranws.bmp~
	COPY_EXISTING ~c-aran.cre~ ~override~
		WRITE_BYTE 0x2F 12 /* skin color (light carnation pink) */
		WRITE_BYTE 0x32 2  /* hair color (dark gold) */
	PRINT ~Macmazey's  "Bearded" style (dark hair, light complexion) installed.~
END
ACTION_IF ("arportrait" = 0x8) THEN BEGIN  /*  Macmazey's "No Beard" style (dark hair, light complexion) */
	COPY ~aranw/media/mcmazey_nobeardl.bmp~ ~override/c-aranwl.bmp~ 
	COPY ~aranw/media/mcmazey_nobeardm.bmp~ ~override/c-aranwm.bmp~ 
	COPY ~aranw/media/mcmazey_nobeards.bmp~ ~override/c-aranws.bmp~
	COPY_EXISTING ~c-aran.cre~ ~override~
		WRITE_BYTE 0x2F 12 /* skin color (light carnation pink) */
		WRITE_BYTE 0x32 2  /* hair color (dark gold) */
	PRINT ~Macmazey's "No Beard" style (dark hair, light complexion) installed.~
END
ACTION_IF ("arportrait" = 0x9) THEN BEGIN  /*  Macmazey's "Horatio Photo" style (dark hair, light complexion) */
	COPY ~aranw/media/mcmazey_photo_hl.bmp~ ~override/c-aranwl.bmp~ 
	COPY ~aranw/media/mcmazey_photo_hm.bmp~ ~override/c-aranwm.bmp~ 
	COPY ~aranw/media/mcmazey_photo_hs.bmp~ ~override/c-aranws.bmp~
	COPY_EXISTING ~c-aran.cre~ ~override~
		WRITE_BYTE 0x2F 12 /* skin color (light carnation pink) */
		WRITE_BYTE 0x32 2  /* hair color (dark gold) */
	PRINT ~Macmazey's "Horatio Photo" style (dark hair, light complexion)installed.~
END
ACTION_IF ("arportrait" = 0xa) THEN BEGIN /*  Peachplum's "Young Fighter" style (red hair, fair comlpexion) */
	COPY ~aranw/media/peachplums_youngl.bmp~ ~override/c-aranwl.bmp~ 
	COPY ~aranw/media/peachplums_youngm.bmp~ ~override/c-aranwm.bmp~ 
	COPY ~aranw/media/peachplums_youngs.bmp~ ~override/c-aranws.bmp~
	COPY_EXISTING ~c-aran.cre~ ~override~
		WRITE_BYTE 0x2F 13 /* skin color (light pure silver) */
		WRITE_BYTE 0x32 4  /* hair color (auburn) */
	PRINT ~Peachplum's "Young Fighter" style (red hair, fair comlpexion) installed.~
END
ACTION_IF ("arportrait" = 0xb) THEN BEGIN /*  piper's "Stalwort Bearded Young" style (light brown hair, fair complexion) */
	COPY ~aranw/media/piper_beard_youngl.bmp~ ~override/c-aranwl.bmp~ 
	COPY ~aranw/media/piper_beard_youngm.bmp~ ~override/c-aranwm.bmp~ 
	COPY ~aranw/media/piper_beard_youngs.bmp~ ~override/c-aranws.bmp~
	COPY_EXISTING ~c-aran.cre~ ~override~
		WRITE_BYTE 0x2F 12 /* skin color (light carnation pink) */
		WRITE_BYTE 0x32 3  /* hair color (light gold) */
	PRINT ~piper's "Stalwort Bearded Young" style (light brown hair, fair complexion) installed.~
END
ACTION_IF ("arportrait" = 0xc) THEN BEGIN  /*  piper's "Mature Bearded" style (dark brown hair, medium complexion) */
	COPY ~aranw/media/piper_darker_beardl.bmp~ ~override/c-aranwl.bmp~ 
	COPY ~aranw/media/piper_darker_beardm.bmp~ ~override/c-aranwm.bmp~ 
	COPY ~aranw/media/piper_darker_beards.bmp~ ~override/c-aranws.bmp~
	COPY_EXISTING ~c-aran.cre~ ~override~
		WRITE_BYTE 0x2F 84 /* skin color (peachy) */
		WRITE_BYTE 0x32 2  /* hair color (dark gold) */
	PRINT ~piper's "Mature Bearded" style (dark brown hair, medium complexion) installed.~
END
ACTION_IF ("arportrait" = 0xd) THEN BEGIN   /*  piper's "Stalwort Young" style (light brown hair, fair complexion) */
	COPY ~aranw/media/piper_nobeard_youngl.bmp~ ~override/c-aranwl.bmp~ 
	COPY ~aranw/media/piper_nobeard_youngm.bmp~ ~override/c-aranwm.bmp~ 
	COPY ~aranw/media/piper_nobeard_youngs.bmp~ ~override/c-aranws.bmp~
	COPY_EXISTING ~c-aran.cre~ ~override~
		WRITE_BYTE 0x2F 12 /* skin color (light carnation pink) */
		WRITE_BYTE 0x32 3  /* hair color (light gold) */
	PRINT ~piper's "Stalwort Young" style (light brown hair, fair complexion) installed.~
END

Edited by cmorgan, 19 August 2010 - 03:09 PM.

I love deadlines. I love the whooshing noise they make as they go by. - Douglas Adams

#66 cmorgan

cmorgan

    journeyman investigator

  • Gibberlings
  • 7097 posts
  • Gender:Male
  • Location:Glencoe, IL, USA

Posted 19 August 2010 - 12:46 PM

Never mind on the edits - i converted everything and got 'em all in the various sizes. And here is the documentation, so you can take a look:

Aran's alternate portraits page

and I forgot 0xA does not necessarily equal 0xa - rechecked against nythrun's code and edited above. And it even installs, and changes what it is supposed to - miracles of miracles!

edit;/ aaaaand...

REQUIRE_COMPONENT ~setup-aranw.tp2~ ~0~ ~Aran Whitehand must be installed for this to work.~

needs to be added, so it will yank everything out on uninstall. Edited above.

EDIT:/ aaaand... i need to stop for today, as I am making silly mistakes. Above code edited for the proper spelling of the various contributors, on the part that is seen by installers - I'll fix the rest later. portraits page updated with links to the member profiles of the contributors.

Edited by cmorgan, 19 August 2010 - 03:08 PM.

I love deadlines. I love the whooshing noise they make as they go by. - Douglas Adams

#67 KathStoneDog

KathStoneDog
  • Members
  • 84 posts

Posted 20 August 2010 - 01:34 AM

Aran's alternate portraits page


Oh my! Oh my! :undecided:

#68 berelinde

berelinde

    The Typo Queen

  • Gibberlings
  • 8594 posts
  • Gender:Male
  • Location:New Jersey, USA

Posted 20 August 2010 - 01:46 AM

Oh, jeez, maybe I should make some attempt to convert "Boromir" and "scruffy" to some kind of acceptable BG2 style. Way too photorealistic.
Must. Write. Faster.

cmorgan: "None of us get old around here, just more proficient at doing more stuff with less braincells!"

berelinde's mods
TolkienAcrossTheWater website
TolkienAcrossTheWater Forum

#69 Mike1072

Mike1072
  • Gibberling Poobah
  • 2524 posts
  • Gender:Male
  • Location:Canada

Posted 20 August 2010 - 02:13 AM

and I forgot 0xA does not necessarily equal 0xa

0xA does equal 0xa. But you could save yourself the trouble and just write 10. Counting in hex should be avoided unless you're trying to show off your geekiness.

#70 cmorgan

cmorgan

    journeyman investigator

  • Gibberlings
  • 7097 posts
  • Gender:Male
  • Location:Glencoe, IL, USA

Posted 20 August 2010 - 05:42 AM

Hmmm... then perhaps I have found a strange case sensitivity? I followed Nythrun's A_R code from level1npcs for the fix, and when mine read 0xD, it did not pick up the entry "13", but when I lowercased it, it did. Odd. But it is good to know that decimals are good enough for the code!
I love deadlines. I love the whooshing noise they make as they go by. - Douglas Adams

#71 ericp07

ericp07

    Journeyman Modder

  • Members
  • 1290 posts
  • Gender:Male
  • Location:Patterson, CA, USA

Posted 26 January 2011 - 10:22 AM

[deleted]

Edited by ericp07, 30 November 2012 - 11:11 AM.

Working and playing under Windows 7 Ultimate on a Mac Pro 3,1 running Mac OS X 10.11.6 El Capitan.

~Buion na 'ell! I serve with joy! Your eyes and ears I shall be. Let us hunt together!~
- Erysseril Gwaethorien: a joinable, romanceable NPC mod for BGII - SoA/ToB, still in development.

A female elf warrior and a Bhaalspawn cross paths during their quests, joining forces to share adventure and companionship. Will they find more?


#72 Peachplums

Peachplums
  • Members
  • 13 posts
  • Gender:Female
  • Location:Arizona

Posted 12 September 2012 - 08:17 AM

I made another one. I like it better than the one I made before. I promise I won't make any more of Aran.

Posted Image

It should be cropped to 210x330.
All our words are but crumbs that fall down from the feast of the mind. - Kahlil Gibran

#73 cmorgan

cmorgan

    journeyman investigator

  • Gibberlings
  • 7097 posts
  • Gender:Male
  • Location:Glencoe, IL, USA

Posted 12 September 2012 - 02:30 PM

Don't promise that....

I'll swap it in!
I love deadlines. I love the whooshing noise they make as they go by. - Douglas Adams



Reply to this topic



  



Also tagged with one or more of these keywords: npc, mod development, portraits, weidu tp2 coding, aran whitehand

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users