SimsLib

Discussion in 'General Discussion' started by xezno, Jan 6, 2014.

  1. xezno

    xezno Member

    How do you use SimsLib... I've looked everywhere. The source of PD. The Object Browser. LITERALLY EVERYWHERE. How doo you use it!?!??!? Me and [another user] are wondering how to use it and the only help we got so far is that everyone is busy, yet you all MOAN at us for using screenshots -_- ugh.
    (Sorry I'm just... annoyed at loads of stuff)
  2. Afr0

    Afr0 Well-Known Member

    If you can't figure out how to use it, I strongly suggest you learn more about the basics of programming...

  3. RHY3756547

    RHY3756547 FreeSO Developer Staff Member Moderator

    10/10 would instantiate again
    LetsRaceBwoi likes this.
  4. francot514

    francot514 Well-Known Member


    The Far archive are easy, but when i search about iff files things changed and is not about c programming is about sims antics and hex editing...


    By example how to define iffchunk, if there is no new chunk

    i know chunk.resource can be= bmp, str, drgp, but there is nothing i can use to define the chunk.

    Also if i create a new instance of string table, it request me that point chunk.data, but it is empty ....
  5. xezno

    xezno Member

    OK now I'm about to seriously rage

    THERE ARE NO COMMENTS IN THE CODE NO DOCUMENTATION NOTHING HOW AM I SUPPOSED TO KNOW HOW TO USE THIS THAT AND THE OTHER IF THERE IS NONE AND THD CODE IS IN C# WHEN IM USING VB AND...

    Goodbye. I am probably quitting the forums now.
  6. francot514

    francot514 Well-Known Member

    I have discovered how to implement it, the only problem is the lib have two big bugs, one prevent for bmp_ resource to be read correctly and the other one avoid to read iff files that not contain bhavs or strings tables...

    By example cannot read all object images or any house iff files...

    [​IMG]
  7. Afr0

    Afr0 Well-Known Member

    francot514: If the BMP_ resource isn't being read correctly, that's probably down to differences between TS and TSO.

    Xezno: There are comments in SimsLib (many comments!), but none on how to use it, because the reader is assumed to have basic programming knowledge. If you can't wrap your head around it, take a look at the source for Iffinator - it should help you.
  8. xezno

    xezno Member

    Thank you.
  9. francot514

    francot514 Well-Known Member

    What is iffnator??? A program for tso iff files, becuase remember we are using it to different purposes, in my personal i need to read and write sims 1 iff, what can i actually do with simslib, with the exception that it did not recognize properly bhavs instructions and other chunks like: FAMS, NGHBS, TTRS.... like in houses.iff and neighborhood.iff
  10. Afr0

    Afr0 Well-Known Member

    Yeah, those chunks are not in TSO. I already showed you where you can get information on the IFF format for The Sims - you can implement support for the missing chunks yourself!
  11. francot514

    francot514 Well-Known Member

    I really cant becuase those chunk are not been decoded in along time, ttas, nghs, fams, always been worked on hex editors, then is not necessary to do, but if i found a way to support for it then ill notice you about it...
  12. francot514

    francot514 Well-Known Member

    Using iffnator source code i got reading bhavs primitives like this, what im missing:

    [​IMG]

    (("WHAT [" & CInt(Val(P.Item(4)) & "]"))

    (("WHAT [" & Conver.toInt32((P.Item(4)) & "]"))

    (("WHAT [" & cInt(Acws(P.Item(4)) & "]"))
  13. xezno

    xezno Member

    It won't work! I'm trying to read an image, and it won't work, it comes up with an error about it being in BYTE format!?!?
    EDIT: Never mind, ITS WORKING! WOOT!
  14. francot514

    francot514 Well-Known Member

    You will use simslib in the project dollhouse???, i have created a tool called iff explorer that read perfectly iff files 2.5 and far 1 archives.
  15. xezno

    xezno Member

    Nice!
    *high fives Franco*
  16. francot514

    francot514 Well-Known Member

    My last discoveries allow me to edit the sims families and lots export files using the Simslib. Why??? Becuase theyre are iff files converted, you can open, read it and covert to iff type to be able to edit in tools like iff pencil, or hex editor.

    Also i want to allow my program to read neighborhood.iff values to do that ill use some tool source code called Sims Edit:

    http://sourceforge.net/projects/tsedit/


    If you want to help me do that, ill apretiate it...
  17. aidancheddar

    aidancheddar Active Member

    To make things easier, I put TSEdit on GitHub as TS1Edit2k. I'm also working on a fun little rewrite of the application, known as TS1EditSharp, though I thought of calling it TS1Edit3k or TS1EditX instead.
    Last edited: Mar 5, 2014
  18. francot514

    francot514 Well-Known Member

    I know that, why you want to rewrite in csharp??? the application can be compiled and do what it need to do, but if you can improve it will be great and i be greateful with you for doing it... Im trying to make my sims ville roleplay able to edit sims attributes as better possible...
  19. aidancheddar

    aidancheddar Active Member

    It's written in VisualBasic, a language very few of us know, and looking the first lines of code, is hard coded to build only for Windows. It would be easier to rewrite it in an more portable and easier to understand language such as CSharp, as well as provide more flexibility. Also doing it to gain experience in how The Sims work.

Share This Page