This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [Question] Editing/accessing zooming/scrolling defaults  (Read 1855 times)

dobidoberman1

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 17
    • View Profile
[Question] Editing/accessing zooming/scrolling defaults
« on: April 10, 2013, 03:27:47 pm »
basically i'm wondering where can i access anywhere over the mpq/source files something about this following mechanisems.
1. zooming mechanisem - where can it code can be found? and mainly all the code behind the settings panel in the game.
 
sincerely daniel.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: [Question] Editing/accessing zooming/scrolling defaults
« Reply #1 on: April 10, 2013, 03:47:49 pm »
Quote from: "dobidoberman1"
basically i'm wondering where can i access anywhere over the mpq/source files something about this following mechanisems.
1. zooming mechanisem - where can it code can be found? and mainly all the code behind the settings panel in the game.
 
sincerely daniel.
Pretty sure that is built-in and hardcoded into the source.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

dobidoberman1

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 17
    • View Profile
Re: [Question] Editing/accessing zooming/scrolling defaults
« Reply #2 on: April 10, 2013, 03:53:31 pm »
I was refered from trinity forums to here, and said its most certainly relates to dbc modifying.
And i merely wants to change the maximum and the default zooming data, not necessarely rephrasing the algorithm.

So as you can see i'm really buffled.. :S
Also the zooming is different within each race thats why it's like already built in the dbc, i mean from the least i know about the dbc files - this is my assumption.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: [Question] Editing/accessing zooming/scrolling defaults
« Reply #3 on: April 10, 2013, 03:55:21 pm »
Quote from: "dobidoberman1"
I was refered from trinity forums to here, and said its most certainly relates to dbc modifying.
And i merely wants to change the maximum and the default zooming data, not necessarely rephrasing the algorithm.

So as you can see i'm really buffled.. :S
You want to be able to look farther than you can right now, correct ? Increase camera range?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [Question] Editing/accessing zooming/scrolling defaults
« Reply #4 on: April 10, 2013, 03:57:56 pm »
Try setting the cvar manually. You will notice that only a specific range of values is accepted. This is due to hard coded limits (not in any DBC, iirc). The settings window itself is in some LUA in FrameXML.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

dobidoberman1

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 17
    • View Profile
Re: [Question] Editing/accessing zooming/scrolling defaults
« Reply #5 on: April 10, 2013, 04:09:40 pm »
Noap, i mean just as you scroll up and down to zoom into your character - i wants to be able to zoom out more then the maximal default lets you.
And if you can elaborate what you just said, about that certain harcoding - is it possible to intepretetate from the code meaning?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [Question] Editing/accessing zooming/scrolling defaults
« Reply #6 on: April 10, 2013, 05:15:48 pm »
That distance is a cvar. Change it. There are also addons changing the maximum distance within certain limits. The hardcoded limit is somewhere in the binary and is circumvented with various hacks like the WMT.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

dobidoberman1

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 17
    • View Profile
Re: [Question] Editing/accessing zooming/scrolling defaults
« Reply #7 on: April 10, 2013, 06:24:50 pm »
Sorry for being all ignorant again, i'm merely studying c++ for four weeks so i'm having difficults understand those technical stuff.
cvar is a console variable - since i don't know if the dbc is also written in lua, c++. i'm a bit confused of where i should refer my self to. sourcecode/dbc

where are those console variables located?
are they inside the source in a header called console?

many thanks again, and sorry for all the trouble.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: [Question] Editing/accessing zooming/scrolling defaults
« Reply #8 on: April 10, 2013, 06:27:08 pm »
Quote from: "dobidoberman1"
Sorry for being all ignorant again, i'm merely studying c++ for four weeks so i'm having difficults understand those technical stuff.
cvar is a console variable - since i don't know if the dbc is also written in lua, c++. i'm a bit confused of where i should refer my self to. sourcecode/dbc

where are those console variables located?
are they inside the source in a header called console?

many thanks again, and sorry for all the trouble.
Either in console (apply -console in your application execution and press ~) or change it within your config.wtf
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

dobidoberman1

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 17
    • View Profile
Re: [Question] Editing/accessing zooming/scrolling defaults
« Reply #9 on: April 18, 2013, 09:29:53 pm »
hello again.

so i've been doing my research about the camera function and it came to my attention that indeed it's limited.
so i was attempting to make some reverse engineering via IDA over the idb file and yet i couldn't change those values via cheat engine.  //Credit to Ownedcore for the support//
the values are:
004F5960    CGWorldFrame__GetActiveCamera
                              | |
                               
 offset as 7e20, pointer to b7436c
here's a picture to deeply describe what i mean
http://i.imgur.com/QCW2ZER.png
i went towrad the memory address of CGWorldFrame__GetActiveCamera - got the decimal numbers for 32288 and copied b7436c to the pointer address.
yet, it restricted me from changing the values. (0000000).
 so it get me ponder about  the question if there's truely no possiblitly to change the camera FOV settings?
that's incorrect since a program by MALU named Machinma tool actually fulfilling that task and gives the person who uses it the oppertunity to unlock the zooming limitation, and many other stuff.
unfortuantelly the source file for the program is unavailable so i can't prob my eyes into it and get how it works.

but above all the program don't saves your changes - which is actually similar to cheat engine mechanisem.

and still for some reasons its seems that via cheat engine the memory address has like a r-x protection which doesn't make sense because the program of malu actually working.

so my question are:
1. if it possible to locate malu wow machinma tool source code?
2. why does the cheat engine won't let me edit the value of zooming?
3. why when i type in the pointer : wow.exe+b7436c it return blank.
4. if its possible to save Wow machinma tool camera changes by any way?
5. is it possible to create a custom map/models that has different camera angle - like taurans and gnomes ones, and still break that limitation.?

thanks for the help
dan
« Last Edit: January 01, 1970, 01:00:00 am by Admin »