Results 1 to 10 of 10

Thread: kingdoms .sd files

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default kingdoms .sd files

    I added 29 factions total to my mod, but I can not find a working .sd to text converter so I can not add new faction symbols for the addition factions. Can someone point out a way to convert the .sd to txt files (alpaca's does not work). Or can someone copy and paste the code from the strategy.sd and shared.sd files from the different kingdoms campaigns?
    Last edited by alreadyded; December 01, 2011 at 11:58 PM.

  2. #2

    Default Re: kingdoms .sd files

    I think that there is a plugin for notepad++ you can download to allow you to open those files

  3. #3
    Emperor of Hell's Avatar SPA-NED 1-5
    Join Date
    Jul 2011
    Location
    Netherlands
    Posts
    5,747

    Default Re: kingdoms .sd files

    You are talking anout PCP right? Because I also edited those things and IIRC TATW has already converted versions, or I just edited the .sd with notepad

  4. #4

    Default Re: kingdoms .sd files

    Quote Originally Posted by killersmurf View Post
    You are talking anout PCP right? Because I also edited those things and IIRC TATW has already converted versions, or I just edited the .sd with notepad
    Yes, but I need the code from a kingdoms campaign .sd file in order to add in more symbols than the TATW .sd files allow.

  5. #5

    Default Re: kingdoms .sd files

    attached are my shared.sd and strategy.sd in XML format which can be opened in notepad or notepad++, i recommend notepad++ for the color format....they are from KGCM Mod and have most all the kingdoms factions (all european factions, two americas factions)....i hope this helps.....

  6. #6

    Default Re: kingdoms .sd files

    Quote Originally Posted by valvegas1 View Post
    attached are my shared.sd and strategy.sd in XML format which can be opened in notepad or notepad++, i recommend notepad++ for the color format....they are from KGCM Mod and have most all the kingdoms factions (all european factions, two americas factions)....i hope this helps.....
    That is exactly what I need, THANKS!


    Yes, this is so I can add even more new and working faction buttons to the interface.


    @ Tellos, I can only get alpaca's to convert .txt to .sd, which the game does automatically. I tried using Python 2.4, 2.5, 2.6, and 2.7. None worked. I also read it can kinda mess up the txt file, but I don't know.
    Last edited by alreadyded; December 02, 2011 at 05:06 PM.

  7. #7
    Emperor of Hell's Avatar SPA-NED 1-5
    Join Date
    Jul 2011
    Location
    Netherlands
    Posts
    5,747

    Default Re: kingdoms .sd files

    Quote Originally Posted by alreadyded View Post
    Yes, but I need the code from a kingdoms campaign .sd file in order to add in more symbols than the TATW .sd files allow.
    I'm afraid I don't see the problem , what code do you need ?

  8. #8
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: kingdoms .sd files

    Are you talking about the ones in data\ui\southern_european\interface folder?

  9. #9

    Default Re: kingdoms .sd files

    Out of interest, since I've been cobbling together an SD tool which does proper input validation: why is it that “alpaca's does not work” ?

    I'm aware of a couple of bugs in alpaca's tool, notably that it doesn't work for TGA files which do not have a multiple of 8 pixels (1) or ones which do not use the 32bit uncompressed ARGB format (2).

    (1): It calculates the length of the alpha mask bits as being (TGA width × TGA height) ÷ 8, rounded down (integer division). For example, if you feed it a TGA file which is 510 × 510 it will not write out the last 4 alpha mask bits. (510×510÷8 = 32512,5; rounded down it becomes 32512.)
    (2): It assumes that each pixel consists of 4 bytes which isn't true for 16bit TGA files nor for 32bit ARGB TGA files using run length encoding (RLE).
    Last edited by Tellos Athenaios; December 02, 2011 at 03:55 PM.
    -Tellos Athenaios
    CUF tool - XIDX - PACK tool - SD tool - EVT tool

    ὁ δ᾽ ἠλίθιος ὣσπερ πρόβατον βῆ βῆ λέγων βαδίζει” – Kratinos in Dionysalexandros.

  10. #10
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: kingdoms .sd files

    It's an .xml file.

    I got it to work with Python 2.5.4 many moons ago on vanilla. The .tga files it/they reference are in the ui\southern_european\interface folder or better be.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •