Author Topic: Looking for OSP code for alternative character creation process  (Read 800 times)

0 Members and 1 Guest are viewing this topic.

La Grandmaster

  • Squire
  • *
  • I feel it in the water, I feel it in the earth.
    • View Profile
  • Faction: Nord
I've been looking for an osp section of code for ages, i remember seeing it but i cant seem to find it again - what it does is change the initial character creation process so that it is displayed as a sort of story or a page in a book e.g each choice you make changes a word/sentence in the story, I can provide more information if people still dont understand.

xPearse

  • Knight at Arms
  • *
  • H.O.T.D. Check It Out
    • View Profile
  • Faction: Neutral
  • MP nick: xPearse
Re: Looking for OSP code for alternative character creation process
« Reply #1 on: May 31, 2012, 02:34:53 PM »
Well I don't know about the certain thing your looking for but the guide of useful scripts might help you out.

http://forums.taleworlds.com/index.php/topic,78411.0.html


Caba`drin

  • Administrator
  • *
  • It's time to toss the dice.
    • View Profile
  • Faction: Nord
  • MP nick: Caba_drin
  • M&BWBWF&SNW
Re: Looking for OSP code for alternative character creation process
« Reply #2 on: May 31, 2012, 03:00:01 PM »
See Custom Commander or Floris for single screen/presentation-based character background selections.

(Stickied Q&A thread for non-discussion questions, please)



La Grandmaster

  • Squire
  • *
  • I feel it in the water, I feel it in the earth.
    • View Profile
  • Faction: Nord
Re: Looking for OSP code for alternative character creation process
« Reply #3 on: May 31, 2012, 04:06:37 PM »
Yeah sorry I wasn't sure where to post this. The single screen/presentation based character creation processes were exactly what I was looking for, unfortunatly neither the custom commander one or the one in the floris pack are OSP :(      Im assuming there is no OSP code out there to do this?

Duh

  • Grandmaster Knight
  • *
  • I like the way you taste.
    • View Profile
  • Faction: Rhodok
  • MP nick: Sir Simpleton
  • M&BWB
Re: Looking for OSP code for alternative character creation process
« Reply #4 on: May 31, 2012, 04:43:41 PM »
Both of them are osp (found in their released module systems).
Modding Wiki
Silverstag - I cant believe its not butter

Class - we haz it.
I hate when your tampon string gets lost in your inner labia.
There's a massive turd in my rectum that's really annoying me, so I'm off to

Lumos

  • Grandmaster Knight
  • *
  • Mens sana in corpore sano
    • View Profile
  • Faction: Nord
  • M&BWBWF&SNW
Re: Looking for OSP code for alternative character creation process
« Reply #5 on: June 02, 2012, 05:39:17 PM »
This is what the OP requested. Or it was at least the first one to be made...

Kazzan

  • Grandmaster Knight
  • *
    • View Profile
  • Faction: Neutral
  • M&BWBNW
Re: Looking for OSP code for alternative character creation process
« Reply #6 on: June 02, 2012, 10:11:53 PM »
Or this one from Floris:
(click to show/hide)
 
Quote
Men hate what they don't understand, and what they hate they will never understand

KeithGB

  • Recruit
  • *
    • View Profile
  • Faction: Rhodok
Re: Looking for OSP code for alternative character creation process
« Reply #7 on: June 04, 2012, 01:50:14 AM »
Any idea if the steps required to implement the Floris character creation page are around here or would it require some code sifting?

Caba`drin

  • Administrator
  • *
  • It's time to toss the dice.
    • View Profile
  • Faction: Nord
  • MP nick: Caba_drin
  • M&BWBWF&SNW
Re: Looking for OSP code for alternative character creation process
« Reply #8 on: June 04, 2012, 02:40:26 AM »
Any idea if the steps required to implement the Floris character creation page are around here or would it require some code sifting?
No, this bit of Floris code hasn't been removed from the whole. But it would be located pretty concisely in a single presentation in module_presentations and the standard game_start menus in module_game_menus (and the background mesh in module_meshes), so shouldn't take too much code sifting.



La Grandmaster

  • Squire
  • *
  • I feel it in the water, I feel it in the earth.
    • View Profile
  • Faction: Nord
Re: Looking for OSP code for alternative character creation process
« Reply #9 on: June 06, 2012, 05:09:50 PM »
Thanks Lumos! Thats exactly what I was looking for  :D

KeithGB

  • Recruit
  • *
    • View Profile
  • Faction: Rhodok
Re: Looking for OSP code for alternative character creation process
« Reply #10 on: June 09, 2012, 04:41:30 PM »
Any idea if the steps required to implement the Floris character creation page are around here or would it require some code sifting?
No, this bit of Floris code hasn't been removed from the whole. But it would be located pretty concisely in a single presentation in module_presentations and the standard game_start menus in module_game_menus (and the background mesh in module_meshes), so shouldn't take too much code sifting.

Thank's Caba'drin, I found that the CCP source kit is included in Floris's source folders however after I've tried my best to integrate it I am throwing errors in regard to "tf_right_align" and "gpu_center_with_outline" not being defined. Haven't managed to track those declarations down to their home yet. Any clues?

Caba`drin

  • Administrator
  • *
  • It's time to toss the dice.
    • View Profile
  • Faction: Nord
  • MP nick: Caba_drin
  • M&BWBWF&SNW
Re: Looking for OSP code for alternative character creation process
« Reply #11 on: June 11, 2012, 03:48:34 AM »
tf_ (text flags) are defined in header_presentations.py

The other is Floris modmerger kits specific and is found in the gpu_constants file in the kingdom management tools kit. Didn't know there was anything spread out of there--will look to be sure it is copied over/self contained

Thanks man, the tf_right_align flag is still present in header_prsnt so I have no idea how I've messed it up so that still throws an error. As for gpu_constants, how would I go about implementing this? Or would I be best doing a rollback and using modmerger to do the hard work for me (I have no knowledge of MM, yet...)?
Did you have
from header_presentations import *
from the top of whatever file is throwing up the tf_ error? If not, add that line at the top by the other from x import * lines

As for the gpu_constants line, in your case look at it in the mod merger kit, copy it to your module_constants file and then probably rename it something that makes more sense for you...particularly if that is the only undefined thing from that file that that character creation kit needs.



Windyplains

  • Master Knight
  • *
  • Silverstag Dev Team
    • View Profile
  • Faction: Bandit
  • WB
Re: Looking for OSP code for alternative character creation process
« Reply #12 on: June 11, 2012, 01:14:41 PM »
You need the gpu*.py files that I think are hiding in the kingdom management tools folder in the current release.  Those contain a bunch of "graphic presentation utilities" I used to shrink the presentations in Floris down and make them more legible.  CCP uses them quite a bit.  If you bring them over to the CCP folder you should have most of the code that you need.  All that is left after that is a couple of module_game_menu redirects that you can find commented at the top of the Floris module_game_menu file and a troop definition from module_troops.  I can't remember its name off hand, but I am sure the compiler will let you know.

KeithGB

  • Recruit
  • *
    • View Profile
  • Faction: Rhodok
Re: Looking for OSP code for alternative character creation process
« Reply #13 on: June 11, 2012, 02:00:49 PM »
Thanks very much guys! You are all so helpful, best modding forum I have ever hung out in.

Anyhow back to topic: I gave up trying to merge the code by hand and started using the modmerger kit. Although it seems there are also dependencies on from TPE required as it wants tpe_presobj. I'll have to do some hunting for that, ideally I'd grab all the source kits that come with Floris as they are all amazing but that threw too many errors for now. So until I have an alpha build I won't bother adding extra trimmings. But the CCP screen is just too good to pass up...!

Windyplains

  • Master Knight
  • *
  • Silverstag Dev Team
    • View Profile
  • Faction: Bandit
  • WB
Re: Looking for OSP code for alternative character creation process
« Reply #14 on: June 12, 2012, 12:55:58 PM »
You just need the tpe_presobj troop definition and it is in module_troops.  I just figured to reuse it when I built the CCP screen since that wasn't being replaced as a separate OSP.  There were just too many objects on the screen to stick with the usual presentation globals so that troop stores object numbers.

TPE can be taken separately, though it does also use the GPU files (that are included with it's OSP).