LightIntBand.dbc lets WoW stop menu

Shout-Out

User Tag List

Results 1 to 1 of 1
  1. #1
    Cromon's Avatar Legendary


    Reputation
    840
    Join Date
    Mar 2008
    Posts
    714
    Thanks G/R
    0/7
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    LightIntBand.dbc lets WoW stop

    Hey!

    Im trying to change values from LightIntBand.dbc in memory. It worked good for the Light.dbc but now ive got a problem. I use the following code to change the DBC according to LightIntBand.dbc - WoW.Dev Wiki

    Code:
     [StructLayout(LayoutKind.Sequential)]
        internal struct LightIntBand
        {
            public uint ID;
            public uint NumEntries;
            [MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]
            public uint[] TimeValues;
            [MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]
            public int[] ColorValues;
        }
    
        public class Light
        {
            public static void ChangeLightColor(Color value)
            {
                byte[] tmp = new byte[4];
                for (uint i = 0; i < Utils.Statics.dbcIntBand.numRows; ++i)
                {
                    EntryPoint.ReadProcessMemory(Process.GetCurrentProcess().Handle, new IntPtr(Statics.dbcIntBand.rowPointer.ToInt32() + i * 4), tmp, 4, IntPtr.Zero);
                    IntPtr strucPtr = new IntPtr(BitConverter.ToInt32(tmp, 0));
                    try
                    {
                        LightIntBand ent = (LightIntBand)Marshal.PtrToStructure(strucPtr, typeof(LightIntBand));
                        if ((i % 18) == 2 || (i % 18) == 3 || (i % 18) == 4 || (i % 18) == 5 || (i % 18) == 6)
                        {
                            for (uint j = 0; j < 16 && j < ent.NumEntries; ++j)
                                ent.ColorValues[j] = (value.R >> 8 | (value.G >> 16) | (value.B >> 24) | (0x00));
                        }
                        Marshal.StructureToPtr(ent, strucPtr, false);
                    }
                    catch (Exception)
                    {
                    }
                }
            }
        }
    The same code ive used to change Values in Light.dbc where it worked good and changed ingame. But here ive got a problem:
    As soon as the code runs i get "WoW has stopped working". No exception, no crash or error, just the Windows JIT Debugger arguing, that WoW had an error.

    Does anyone have a clue about this?

    Greetings
    Cromon

    LightIntBand.dbc lets WoW stop

Similar Threads

  1. Wow Stopped working issues
    By demonguy in forum WoW Memory Editing
    Replies: 7
    Last Post: 07-02-2012, 10:18 AM
  2. Reasons to stop WOW!
    By Mpampis in forum Community Chat
    Replies: 33
    Last Post: 04-11-2007, 06:09 PM
  3. Where are the DBC files in wow ?
    By raptornl in forum WoW ME Questions and Requests
    Replies: 3
    Last Post: 01-05-2007, 01:19 PM
  4. DBC Edits crashing my wow?
    By dela in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 10-01-2006, 04:56 AM
  5. Using dbc.mpq to make WoW trivial
    By gotosleep in forum World of Warcraft Model Editing
    Replies: 14
    Last Post: 08-27-2006, 07:29 AM
All times are GMT -5. The time now is 12:24 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