[some crappy code] PyMode menu

User Tag List

Page 3 of 3 FirstFirst 123
Results 31 to 45 of 45
  1. #31
    RedArray's Avatar Corporal
    Reputation
    7
    Join Date
    Nov 2009
    Posts
    24
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by miceiken View Post
    Finally managed to implement an in-proccess version of Apoc's DBC reader:
    Attachment 4050
    Hadn't even thought to do that to solve my problem...

    It seems to be crashing wow for me unfortunately though. I'm wondering did you have to update this from DbcUtils? private const uint WOW_USE_SPELL_UNPACK = 0xC775D0;

    *EDIT* Well I'm not crashing now. Something else is going bad though..hmph the name string is all garbage -_-
    Last edited by RedArray; 09-21-2010 at 10:37 PM.

    [some crappy code] PyMode
  2. #32
    miceiken's Avatar Contributor Authenticator enabled
    Reputation
    209
    Join Date
    Dec 2007
    Posts
    401
    Thanks G/R
    7/9
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by RedArray View Post
    Hadn't even thought to do that to solve my problem...

    It seems to be crashing wow for me unfortunately though. I'm wondering did you have to update this from DbcUtils? private const uint WOW_USE_SPELL_UNPACK = 0xC775D0;

    *EDIT* Well I'm not crashing now. Something else is going bad though..hmph the name string is all garbage -_-
    Well, overall it's kind of neater, because now I can implement other things, such as faction support.
    As far as I understand the internal wow GetLocalizedRow takes care of the unpacking so I don't use the DbcUtils class at all.

  3. #33
    RedArray's Avatar Corporal
    Reputation
    7
    Join Date
    Nov 2009
    Posts
    24
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by miceiken View Post
    Well, overall it's kind of neater, because now I can implement other things, such as faction support.
    As far as I understand the internal wow GetLocalizedRow takes care of the unpacking so I don't use the DbcUtils class at all.
    After cutting out the DBcUtils class and just calling the clients GetLocalizedRow I just keep crashing. I have no idea what's going on. Wondering if the function signature I'm using is wrong? The exception that is getting thrown is something to do with invoking this function.

    Code:
    bool GetLocalizedRow(IntPtr pThis, int index, IntPtr row)

  4. #34
    ramey's Avatar Member
    Reputation
    45
    Join Date
    Jan 2008
    Posts
    320
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by RedArray View Post
    After cutting out the DBcUtils class and just calling the clients GetLocalizedRow I just keep crashing. I have no idea what's going on. Wondering if the function signature I'm using is wrong? The exception that is getting thrown is something to do with invoking this function.

    Code:
    bool GetLocalizedRow(IntPtr pThis, int index, IntPtr row)
    What address are you using, and how exactly are you calling it..? You didn't provide enough information.

  5. #35
    RedArray's Avatar Corporal
    Reputation
    7
    Join Date
    Nov 2009
    Posts
    24
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ramey View Post
    What address are you using, and how exactly are you calling it..? You didn't provide enough information.
    Code:
    [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
    internal delegate bool GetLocalizedRowDelegate(IntPtr pThis, int index, IntPtr pRow);
    
    private GetLocalizedRowDelegate getLocalizedRow; //This is initialized on first call of GetLocalizedRow<T>()
    Memory for the row gets allocated.

    then simply call it

    getLocalizedRow(_tablePtr, index, row);

    and this is the address I'm using: 0x004CFD20

  6. #36
    ramey's Avatar Member
    Reputation
    45
    Join Date
    Jan 2008
    Posts
    320
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by RedArray View Post
    Code:
    [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
    internal delegate bool GetLocalizedRowDelegate(IntPtr pThis, int index, IntPtr pRow);
    
    private GetLocalizedRowDelegate getLocalizedRow; //This is initialized on first call of GetLocalizedRow<T>()
    Memory for the row gets allocated.

    then simply call it

    getLocalizedRow(_tablePtr, index, row);

    and this is the address I'm using: 0x004CFD20
    Address is correct, I presume you've verified that the index is valid, and that the row is a pointer to an array which has enough space for that row. What is _tablePtr..? What do you get when you debug it? I've got my function declaration returning an unsigned long, but I don't think that will make a difference - unless there is some weird shit different in C# than in C++.

  7. #37
    RedArray's Avatar Corporal
    Reputation
    7
    Join Date
    Nov 2009
    Posts
    24
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ramey View Post
    Address is correct, I presume you've verified that the index is valid, and that the row is a pointer to an array which has enough space for that row. What is _tablePtr..? What do you get when you debug it? I've got my function declaration returning an unsigned long, but I don't think that will make a difference - unless there is some weird shit different in C# than in C++.
    I decided to just go back to my little happy unmanaged world. I have this working in C++...I don't know what the heck I messed up in the C# version. Was fun mucking around with this PyMode thing though. Thanks for trying to help though.

  8. #38
    ramey's Avatar Member
    Reputation
    45
    Join Date
    Jan 2008
    Posts
    320
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by RedArray View Post
    I decided to just go back to my little happy unmanaged world. I have this working in C++...I don't know what the heck I messed up in the C# version. Was fun mucking around with this PyMode thing though. Thanks for trying to help though.
    No worries C++ is the way to go

  9. #39
    miceiken's Avatar Contributor Authenticator enabled
    Reputation
    209
    Join Date
    Dec 2007
    Posts
    401
    Thanks G/R
    7/9
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey Kryso,
    I was just wondering if you still had the classes that you used to draw the things you have in the pictures in the main post, would be cool to try some of them, seeing as they aren't in the git - only the circle and line..

    Thanks in advance

  10. #40
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by RedArray View Post
    I decided to just go back to my little happy unmanaged world. I have this working in C++...I don't know what the heck I messed up in the C# version. Was fun mucking around with this PyMode thing though. Thanks for trying to help though.
    That's right. Come back to the dark side.

    We have cookies.

  11. #41
    XTZGZoReX's Avatar Active Member
    Reputation
    32
    Join Date
    Apr 2008
    Posts
    173
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's right. Come back to the dark side.

    We have cookies.
    But do you have vanilla ones?!

  12. #42
    MaiN's Avatar Elite User
    Reputation
    335
    Join Date
    Sep 2006
    Posts
    1,047
    Thanks G/R
    0/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Cypher View Post
    That's right. Come back to the dark side.

    We have cookies
    ...and AIDS.
    [16:15:41] Cypher: caus the CPU is a dick
    [16:16:07] kynox: CPU is mad
    [16:16:15] Cypher: CPU is all like
    [16:16:16] Cypher: whatever, i do what i want

  13. #43
    SKU's Avatar Contributor
    Reputation
    306
    Join Date
    May 2007
    Posts
    565
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by MaiN View Post
    ...and AIDS.
    But also cookies!

  14. #44
    MaiN's Avatar Elite User
    Reputation
    335
    Join Date
    Sep 2006
    Posts
    1,047
    Thanks G/R
    0/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by SKU View Post
    But also cookies!
    AIDS infected cookies.
    [16:15:41] Cypher: caus the CPU is a dick
    [16:16:07] kynox: CPU is mad
    [16:16:15] Cypher: CPU is all like
    [16:16:16] Cypher: whatever, i do what i want

  15. #45
    RedArray's Avatar Corporal
    Reputation
    7
    Join Date
    Nov 2009
    Posts
    24
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by MaiN View Post
    AIDS infected cookies.
    But cookies nonetheless!

    And they are delicious

Page 3 of 3 FirstFirst 123

Similar Threads

  1. Replies: 8
    Last Post: 01-06-2009, 06:08 PM
  2. Replies: 15
    Last Post: 07-22-2008, 07:38 AM
  3. Some Morph Codes
    By Festigio in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 12-25-2007, 07:49 PM
  4. [AU3] Need some coding help.
    By Tink in forum Community Chat
    Replies: 4
    Last Post: 12-25-2007, 12:10 AM
All times are GMT -5. The time now is 09:46 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search