|
The Edge of Nowhere Join us on IRC!
|
|
|
| Author |
Message |
prj User

Joined: 20 Sep 2009 My Posts
|
Posted: Sun Oct 11, 2009 4:06 pm Post subject: [Program] Adjustable Max Zoom & EasyDeny - Patch 0.1.64 |
|
|
Description:
Changes the maximum camera distance limit and fixes the "black bar bug" which appears over 2500... Also provides EasyDeny.
Instructions:
* Run Injector.exe once, when HoN is running. It will immediately close and the distances/deny will be changed.
* The maximum camera distance that is set can be configured in the IncreasedCamDistance.ini file. Just edit the value found within before you launch Injector.exe.
* HoN start folder can be configured in the ini, if you want HoN to be automatically started
* All hacks can be toggled on and off individually using the ini.
Download:
http://V10.name/icd/english.html
Credit:
Identify for the original program. Unfortunately he is a bit busy IRL, so I decided to update it. I have since joined forces with another developer (V10).
Donations:
If you want to see this tool to be updated and published in the future, please support the developers. All donations will be shared by myself and V10. Any amount is welcome, no matter how big or small.
Please donate here!
Changelog:
| Code: | Adjustable Camera Distance - Version History
Version 1.0.4.0
--------------
Updated for 0.3.0.2+ (V10)
Version 1.0.3.final
--------------
Slight offset adjustment for 1.64+ (V10)
Temporarily removed detect to camdistance change. (V10)
Version 1.0.2.0
--------------
Slight offset adjustment for 1.64+ (V10)
Version 1.0.1.9
--------------
Rewrite code to set camera distance. (V10)
Version 1.0.1.8
--------------
Rewrite code to set camera distance. (V10)
Fixed intermittent camera angle changes (V10)
EasyDeny patch can now be applied multiple times again (V10)
Version 1.0.1.7
--------------
Fixed many problems associated with updating the game to 1.59.1 (V10)
Version 1.0.1.5
--------------
Updated for 1.57 (prj)
Version 1.0.1.4
--------------
Fixed black screen problem (V10 & prj)
Version 1.0.1.3
--------------
Downgraded back to 1.0.1.0 (prj)
Version 1.0.1.2
--------------
Allowed running camdistance patch multiple times again. (prj)
Version 1.0.1.1
--------------
S2 Raped. (prj & V10)
Version 1.0.1.0
--------------
Added dynamic setting of scrolling speed based on maximum zoom. (prj)
Added .ini option for zoom/scroll ratio (ScrollSpeedRatio), default is 1.81(81). (prj)
Version 1.0.0.9
--------------
Adjusted EasyDeny offset to be more robust (prj)
Shows a message dialog if the patch fails instead of failing silently (prj)
Added detection whether EasyDeny patch is already applied or not (prj)
Cleaned up code (prj)
Version 1.0.0.8
--------------
Adjusted offset patterns for new patches (V10)
Version 1.0.0.7
--------------
Added verification of offsets (prevents game crash if offset is not found) (prj)
Adjusted offset patterns to not break with next patch (prj)
Enhanced logging capabilities and added an option to enable/disable logging (prj)
Added EasyDeny support (V10)
Added possibility to automatically start HoN if it is not running (V10)
Made it possible to enable both mods separately via inifile (V10)
Version 1.0.0.6
--------------
Large refactoring of code (prj)
Write log only when a problem occurs (prj)
Version 1.0.0.5
--------------
Improved automatic offset search (V10)
Debug logging (V10)
Version 1.0.0.4
--------------
Initial automatic offset search (V10)
Code cleanup (prj)
Version 1.0.0.3
-------------
Disable camera constraints (prj)
Created SVN repository (prj)
Version 1.0.0.2
-------------
Fix for units not displaying above a certain zoom (prj)
Move project to c++ (prj)
Version 1.0.0.1
--------------
DLL no longer stays in memory (V10)
Use new type of ini (V10)
Merge code between two projects (prj, V10)
Version 1.0.0.0
--------------
Added possibility to adjust max camera distance. (prj) |
Last edited by prj on Fri Jul 30, 2010 11:49 am; edited 40 times in total |
|
| Back to top |
|
 |
kotoko User

Joined: 09 Jul 2008 My Posts
|
Posted: Sun Oct 11, 2009 11:12 pm Post subject: |
|
|
| Thanks a bunch much appreciated. |
|
| Back to top |
|
 |
Dark_Mage- Section Leader Gold

Joined: 19 Sep 2002 My Posts
Location: ٩(͡๏̯͡๏)۶ dilly-dally'n
|
|
| Back to top |
|
 |
twoqs User

Joined: 03 Oct 2009 My Posts
Location: noob saibot
|
Posted: Mon Oct 12, 2009 12:31 am Post subject: |
|
|
You're awesome prj.
Also note this works for the new 1.49 patch. |
|
| Back to top |
|
 |
D3luxe User

Joined: 11 Mar 2007 My Posts
|
Posted: Mon Oct 12, 2009 12:42 am Post subject: |
|
|
| Dark_Mage- wrote: | | http://www.bhfiles.com/files/HoN/AdjustableICDv48.zip |
Note, not sure if this is an updated version or not, but this DOES work with 1.49.
Nice work, I like it. |
|
| Back to top |
|
 |
gavno_2 User

Joined: 12 Oct 2009 My Posts
|
Posted: Mon Oct 12, 2009 12:55 am Post subject: |
|
|
My reworked version.
wheel varies from 400 to 5000!
removed the black area that interfered with normal sight!
run the same way during the game.
ini file you can change the settings on their own:
| Code: | camDistMin = 400
minimum distance
camDistMax = 5000
maximum distance
camFov = 50
FOV camera angle
clipRegion = 6600
height of the black area for which it was not previously seen to be in 3000 more than the maximum distance the camera or even more
|
compiled http://www.speedyshare.com/757261234.html
source http://www.speedyshare.com/157810608.html |
|
| Back to top |
|
 |
prj User

Joined: 20 Sep 2009 My Posts
|
Posted: Mon Oct 12, 2009 1:26 am Post subject: |
|
|
1) In mine clipping region is set dynamically... I don't see why you need to specify it.
2) Also, reading your source, you did nothing to solve the issue with not seeing units above 3000. So I don't see why 5000 is good...
3) char pBaseDir[300], strcat(pBaseDir,"camdist.ini")... If the path name is over 300 characters, your code will overflow.
But... at least I learned that GetPrivateProfileString exists
EDIT:
Regarding v1.49 patch. I haven't tested it, but if it does, great. Means they didn't change any code in the engine. |
|
| Back to top |
|
 |
gavno_2 User

Joined: 12 Oct 2009 My Posts
|
Posted: Mon Oct 12, 2009 2:05 am Post subject: |
|
|
1) I see no reason to make it dynamic in general, you can generally put 30000 and forget about him, yet the settings you can change it to a larger number, you should not use ScrollLock, you can do with the mouse wheel.
2) I have seen great unit, and at an altitude of 15000, perhaps the reason is that you do not see what is different.
3) the probability of this is extremely small (MAX_PATH = 260), it can easily be corrected if there are problems, but thanks for the hint of strcat_s)
And yet, my library does not hang in memory and discharged after use allowing you to run it many times.
Library of the word here is not needed, but I was too lazy to write code for external writes to the process.
Last edited by gavno_2 on Mon Oct 12, 2009 2:12 am; edited 1 time in total |
|
| Back to top |
|
 |
prj User

Joined: 20 Sep 2009 My Posts
|
Posted: Mon Oct 12, 2009 2:11 am Post subject: |
|
|
| gavno_2 wrote: | | 1) I see no reason to make it dynamic in general, you can generally put 30000 and forget about him |
It affects performance to some extent.
| Quote: | | yet the settings you can change it to a larger number, you should not use ScrollLock, you can do with the mouse wheel. |
I don't use "scroll lock"... Look at my source before complaining
| Quote: | | 2) I have seen great unit, and at an altitude of 15000, perhaps the reason is that you do not see what is different. |
Source is posted, there is no difference between yours and mine except for setting FoV, but 50 FoV is default anyway.
Try in network game, zoom out all the way. You will only see the units in the centre of the the viewpoint. Units away from the centre will be invisible, it is possible to see projectiles, but the engine does not draw the units. So as I said, it's not very useful going above 3000 distance, unless you can figure the variable that controls the maximum distance at which the engine draws units...
| Quote: | | 3) the probability of this is extremely small, but it can easily be corrected if there are problems. |
No, not "extremely small". It can easily happen...
| Quote: | | And yet, my library does not hang in memory and discharged after use allowing you to run it many times. |
Makes no difference... but yeah, it can be unloaded if you want to. Just two calls in Injector.c. That said Sleep(2000) is really not the way to wait until DLL finishes execution.
| Quote: | | Library of the word here is not needed, but I was too lazy to write code for external writes to the process. |
In the future it will be needed, once bound checks will not be simple if checks.
Also "WriteModuleBytes("game_shared.dll", 0x1FDF10, (void*)&newMinDist, 4);" should be newMinDistf here. But at least we know that the offset isn't very important, since you are writing garbage to it and nothing goes wrong.
This all said. Are you russian by any chance (judging by your nick)? If so, maybe we should talk in russian in private, because it's a bit hard to tell what you mean sometimes. Also, your source could use some cleanup. It's worse than mine, and I have about 2 days of C/C++ experience... |
|
| Back to top |
|
 |
gavno_2 User

Joined: 12 Oct 2009 My Posts
|
Posted: Mon Oct 12, 2009 3:30 am Post subject: |
|
|
| Quote: | | I don't use "scroll lock"... Look at my source before complaining |
I apologize for inattention to your code, ran his eyes without going into details. ()
| Quote: | | Also "WriteModuleBytes("game_shared.dll", 0x1FDF10, (void*)&newMinDist, 4);" should be newMinDistf here. But at least we know that the offset isn't very important, since you are writing garbage to it and nothing goes wrong. |
this var is float.
float newMaxDistf=5000.0;
and only maxdist is double
double newMaxDist=newMaxDistf;
| Quote: | | This all said. Are you russian by any chance (judging by your nick)? If so, maybe we should talk in russian in private, because it's a bit hard to tell what you mean sometimes. Also, your source could use some cleanup. It's worse than mine, and I have about 2 days of C/C++ experience... |
Yes, Russian
I apologize for my English =). |
|
| Back to top |
|
 |
prj User

Joined: 20 Sep 2009 My Posts
|
Posted: Mon Oct 12, 2009 3:43 am Post subject: |
|
|
| gavno_2 wrote: | | Quote: | | Also "WriteModuleBytes("game_shared.dll", 0x1FDF10, (void*)&newMinDist, 4);" should be newMinDistf here. But at least we know that the offset isn't very important, since you are writing garbage to it and nothing goes wrong. |
this var is float.
float newMaxDistf=5000.0;
and only maxdist is double
double newMaxDist=newMaxDistf; |
True, I didn't look at the variables on the top... my mistake, sorry.
I think when I get home from work tonight, I'll combine your and my version, so we have the best from both.
I will unload DLL, and use GetPrivateProfileString to get configuration data... but I don't think there is a point to configure fov, minimum distance and clipping. For clipping, easier to set *1.5 and it always works
Don't think anyone really wants to adjust FoV and minimum distance... and it means searching for more offsets when updating with new patches.
Oh and... we'll discuss in private from now on, since we're both russian, it's easier for us.... |
|
| Back to top |
|
 |
prj User

Joined: 20 Sep 2009 My Posts
|
Posted: Mon Oct 12, 2009 7:08 am Post subject: |
|
|
Teaser:
(removed image to prevent forum bug)
You like?
Last edited by prj on Thu Oct 22, 2009 2:51 am; edited 1 time in total |
|
| Back to top |
|
 |
rubberglu User

Joined: 23 Sep 2009 My Posts
|
Posted: Mon Oct 12, 2009 7:15 am Post subject: |
|
|
a bit over the top to be honest
but it looks like you're still rendering the units from that altitude, so you figured out how to circumvent it? |
|
| Back to top |
|
 |
prj User

Joined: 20 Sep 2009 My Posts
|
Posted: Mon Oct 12, 2009 8:50 am Post subject: |
|
|
| rubberglu wrote: | a bit over the top to be honest
but it looks like you're still rendering the units from that altitude, so you figured out how to circumvent it? |
Was a console command... I'll upload new version tonight that sets the value correctly. |
|
| Back to top |
|
 |
Sabotage Moderator

Joined: 15 May 2004 My Posts
|
Posted: Mon Oct 12, 2009 9:58 am Post subject: |
|
|
| Looks like a view I'd want if I was the roaming hero and could zoom in and out very very quickly. |
|
| Back to top |
|
 |
|
Donations this month: $120 Server cost this month: $120 Surplus Donations: $243 (2 months)
Donators this month: BenOwns, m3flow, crazyguy2005, TriiT, mbundy, pcgamer4life, parajumper, HEMULI, Alister, fallore, ZepherX, iLikeDixLOL, dsa, fobic, wootie, fbu, KaRdOoShI, youngstar2, ByTeMe, jj!, zonic, cruciform, Ninjai, Dr.Duck
|