Thread: Cache packing & stats items

Results 1 to 7 of 7
  1. #1 Cache packing & stats items 
    Development Services √

    Oogle's Avatar
    Join Date
    Apr 2012
    Age
    25
    Posts
    3,976
    Thanks given
    650
    Thanks received
    516
    Rep Power
    483
    Hey guys another noob question but, i've managed to figure out the index1-4 part with the packing.. BUT
    How do i set a modelID from the cache to an item ID within the game with no hardcoding.

    Please can somebody come help me or even show me one time over teamviewer or something just so i know what i'm doing

    Thanks in advance


    Attached image

    Attached image
    Reply With Quote  
     

  2. #2  
    Retired From RSPS

    iGarrett's Avatar
    Join Date
    Dec 2013
    Posts
    461
    Thanks given
    144
    Thanks received
    110
    Rep Power
    187
    Have you also packed the item definitions?
    Quote Originally Posted by i am here View Post
    I have never messed with Eclipse. Is it a whole new revision or type of code?
    Quote Originally Posted by bibl View Post
    hahaha, good one m9. "deob" is short for "deobfuscated" which is not the same as decompiled.
    I'm GEEGIN' OUT
    Reply With Quote  
     

  3. #3  
    Development Services √

    Oogle's Avatar
    Join Date
    Apr 2012
    Age
    25
    Posts
    3,976
    Thanks given
    650
    Thanks received
    516
    Rep Power
    483
    Quote Originally Posted by iGarrett View Post
    Have you also packed the item definitions?
    Not exactly sure on how I do this? It’s 317 not 718?


    Attached image

    Attached image
    Reply With Quote  
     

  4. #4  
    Donator

    Yuuji's Avatar
    Join Date
    Feb 2012
    Posts
    678
    Thanks given
    232
    Thanks received
    153
    Rep Power
    197
    Quote Originally Posted by Stoked View Post
    Not exactly sure on how I do this? It’s 317 not 718?
    What source are you using? A lot of 317's use ItemDefinition.java to hardcode items in the client.

    Attached image
    Attached image
    Reply With Quote  
     

  5. #5  
    Development Services √

    Oogle's Avatar
    Join Date
    Apr 2012
    Age
    25
    Posts
    3,976
    Thanks given
    650
    Thanks received
    516
    Rep Power
    483
    Quote Originally Posted by Levi X D View Post
    What source are you using? A lot of 317's use ItemDefinition.java to hardcode items in the client.
    I’m using ruse, but I aren’t wanting to hard code the items that’s what I’m trying to accomplish here. The items are added into the cache/raw file and I can see them in a model viewer. But now my problem is adding the model to an item id in game and have stats


    Attached image

    Attached image
    Reply With Quote  
     

  6. #6  
    Donator

    Yuuji's Avatar
    Join Date
    Feb 2012
    Posts
    678
    Thanks given
    232
    Thanks received
    153
    Rep Power
    197
    Quote Originally Posted by Stoked View Post
    I’m using ruse, but I aren’t wanting to hard code the items that’s what I’m trying to accomplish here. The items are added into the cache/raw file and I can see them in a model viewer. But now my problem is adding the model to an item id in game and have stats
    Go take a look at your ItemDefinition.java

    Because unless you have the ItemDefinitions dumped for the item, you're going to have to Hardcode it to show.

    And I'm not sure if Ruse uses this, but most 317's used ItemCFG.java for their stats.

    Also I am unaware of a 317 ItemDefinitions editor for the cache. Not saying it doesn't exist.

    Attached image
    Attached image
    Reply With Quote  
     

  7. #7  
    Renown Programmer
    Greg's Avatar
    Join Date
    Jun 2010
    Posts
    1,179
    Thanks given
    260
    Thanks received
    1,012
    Rep Power
    2003
    Quote Originally Posted by Stoked View Post
    I’m using ruse, but I aren’t wanting to hard code the items that’s what I’m trying to accomplish here. The items are added into the cache/raw file and I can see them in a model viewer. But now my problem is adding the model to an item id in game and have stats
    ItemDefinitions are stored in a file in the config index. You can use the client's ItemDefinition.java to read them, then you have to write a ItemDefinition writer. Then you can have a script where you read the item definitions from the cache, add or modify the items and their modelIds, then write those changes back to the file and pack it back into the cache.

    The first step is to refactor the item definitions so you have an understand of how item definitions works. Then it's a matter of copying the readvalues and instead of 1. reading opcode 2. setting value. A writer would instead 1. read value 2. if value isn't default 3. write opcode and value
    Attached imageAttached image
    Reply With Quote  
     

  8. Thankful user:



Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 8
    Last Post: 12-02-2016, 08:44 PM
  2. Replies: 271
    Last Post: 02-19-2013, 06:01 AM
  3. All 634 Item cache packed Bug
    By Ninja assassin in forum Help
    Replies: 7
    Last Post: 02-20-2011, 09:05 PM
  4. NICKname's - Cache pack all 634 items - $5
    By MerzA in forum Requests
    Replies: 8
    Last Post: 02-02-2011, 06:30 AM
  5. 602 Item Cache pack (Gzipped)
    By Diverse Reality in forum Help
    Replies: 0
    Last Post: 12-20-2010, 07:18 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •