SUPPORT ACCOUNT CLANS
Welcome, Unregistered.
 

Thread: Lonjaxson's Smooth [v1.5] (3/19/11)

Page 1 of 8 12345 ... LastLast
Results 1 to 20 of 157

Hybrid View

  1. #1
    Offline
    Account Icon
    Join Date
    Sep 2009
    Location
    Duluth, MN, USA
    Posts
    2,530

    Lonjaxson's Smooth [v1.5] (3/19/11)

    Lonjaxson's Smooth

    When you make changes in the mod options, you have to open the F6 menu once more after you close it for the changes to apply.
    If anyone knows how to fix this, let me know.

    This mod applies cg_cameraSmoothing to any camera movements done with the keyboard and mouse. As a result, your camera doesn't make any sudden movements. Make sure you adjust your scroll speed to your liking!

    Video example: http://www.youtube.com/watch?v=3aTMN6s0mzs
    Thanks freestyler7 for putting that together.

    Thanks to bangerz and biomass_se for helping me make my first mod! Thanks to AsiaPingPong, Quzzap, revan_xp, and leMi for making mods so I could look at your code

    Changelog

    1.5: now compatible with BardUI++ 1.20
    1.4: Now compatible with the BardUI++ minimap.
    1.3: Changed halflife mod option to a textbox for more accurate customization, should now be fully compatible with MiniUI and Bang! Misclick Master
    1.2: Updated for 2.0, added mod option to disable smoothing, added mod option to change the halflife (amount of smooth), added mod option for minimap smoothing
    1.1: Added icon (feel free to make a better one), added link, now auto-updatable, now compatible with Bang! Misclick Master
    1.0: Initial release


    Known issues, incompatibilities, etc.
    • When you click the minimap, you must remove the mouse from the map to resume smoothing.
    • When you make changes in the mod-options, you have to open the F6 menu once more after you close it for the changes to apply.
    • Can't move the camera while the game is paused.
    To do
    • Add mod-options to disable the mod
    • Add mod-option to change the rate at which the camera slows down (right now it seems to take about 5 seconds for the camera to fully stop after you stop moving the camera.)
    • Add mod-option to enable/disable minimap smoothing
    • Add hotkey to disable the mod
    Download
    Last edited by LonJAXsoN; 03-19-2011 at 11:05 PM.

  2. #2
    Offline
    Senior Game Master Account Icon
    Join Date
    Sep 2009
    Posts
    3,031
    I've been waiting for this! And then I saw this

    Not compatible with MiniUi (yet).
    And then I was this: FFFFFFFFFUUUUUUUUUUU~~~~~~~~~~

  3. #3
    Offline
    Account Icon
    Join Date
    Sep 2009
    Location
    Duluth, MN, USA
    Posts
    2,530
    it will be compatible as soon as I figure out how to edit miniui's minimap code

  4. #4
    Sounds interesting, i dont really have any problems with the camera, but when mini ui support comes around il give it a shot. Yeah please make a mod options disable, i hate having to re apply mods to enable/disable, so much easier in mod options if i am still tweaking stuff.

    Thanks and good luck with your first mod.

  5. #5

  6. #6
    Offline
    Account Icon
    Join Date
    Sep 2009
    Location
    Duluth, MN, USA
    Posts
    2,530
    yeah miniui is pretty much a deal breaker for most people... including me. i'll get that working asap.

    thanks :-)

  7. #7
    Offline
    Senior Game Master Account Icon
    Join Date
    Sep 2009
    Posts
    3,031
    Quote Originally Posted by LonJAXsoN View Post
    yeah miniui is pretty much a deal breaker for most people... including me. i'll get that working asap.

    thanks :-)
    When can we expect it?

  8. #8
    Offline
    Account Icon
    Join Date
    Sep 2009
    Location
    Salvador/Brazil
    Posts
    1,209
    Wow, as soon as your put a MiniUI compatibility, I'll start to use that ^^ I love smooth.

  9. #9
    nice
    Last edited by Jarge92; 11-26-2010 at 05:33 AM.

  10. #10
    Offline
    Account Icon
    Join Date
    Aug 2009
    Location
    Luxor
    Posts
    217
    Well done bro, but u should really concider of compatibility:



    In my case the error can occur because og Bang! Missclick Master.
    Last edited by InSideR; 11-26-2010 at 05:52 AM.

  11. #11
    Offline
    Account Icon
    Join Date
    Sep 2009
    Location
    Duluth, MN, USA
    Posts
    2,530
    Quote Originally Posted by qazqazqaz View Post
    When can we expect it?
    hopefully sometime today... after i get some sleep. black friday kept me up all night.

    Quote Originally Posted by InSideR View Post
    Well done bro, but u should really concider of compatibility:

    SNIP

    In my case the error can occur because og Bang! Missclick Master.
    Yeah, that mod deals with the minimap. I'll definitely look into that... but miniUI compatibility is definitely higher priority.

  12. #12
    I have a suggestion:
    change:
    Code:
    <editfile name="ui/game.interface">
    to:
    Code:
    <editfile name="ui/game.interface" condition = "not 'MiniUI'">
    this is so that it only changes the code in game.interface when miniUI is not enabled

    then add the miniUI minimap code:

    Code:
    <editfile name="ui/miniminimap.package" condition = "'MiniUI'">
    		<find><![CDATA[<map name="minimap" texture="!minimap_texture" watch="Minimap" onclick="If(MinimapClick(param0, param1), BreakDrag());" onrightclick="If(MinimapRightClick(param0, param1), BreakDrag());"/>]]></find>
    		<replace><![CDATA[map name="minimap" texture="!minimap_texture" watch="Minimap" onclick="Set(cg_cameraSmoothing,0); If(MinimapClick(param0, param1), BreakDrag());" onrightclick="If(MinimapRightClick(param0, param1), BreakDrag());" onmouseout="Set(cg_cameraSmoothing,1);"/>]]></replace>
    	</editfile>
    I did exactly this but am currently unable to test this
    link: edited out due to problems
    if it works, feel free to use the code
    Last edited by JillSandwich; 12-02-2010 at 01:09 PM.

    Playing StarCraft II? DotA? HoN? LoL? Diablo III? Or just finding a community to post and chill in? Visit www.fanaticnetworks.com now!

  13. #13
    Quote Originally Posted by JillSandwich View Post
    I did exactly this but am currently unable to test this
    link: http://dl.dropbox.com/u/4902702/smooth_edited.honmod
    if it works, feel free to use the code
    My Minimap is disabled, when i use your version. So it doesnt really work for mini ui users, at least not for me.

    Is it possible to make the camera swing less time?
    right now you touch the screen and it moves like 0,5 seconds. i would like to see it a bit more faster. A option to cusomize it would be nice.
    so far gj
    At first he was like
    Quote Originally Posted by DrScout
    For the mods: Stop being racistic and stop moving/deleting threads without reasoning.
    but then
    Quote Originally Posted by DrScout
    While, of course, I hate russians with all of my passion and love...

  14. #14
    Quote Originally Posted by Sucker` View Post
    My Minimap is disabled, when i use your version. So it doesnt really work for mini ui users, at least not for me.

    Is it possible to make the camera swing less time?
    right now you touch the screen and it moves like 0,5 seconds. i would like to see it a bit more faster. A option to cusomize it would be nice.
    so far gj
    i probably did something wrong,

    well at least we know that the minimap code is in miniminimap.package

    Playing StarCraft II? DotA? HoN? LoL? Diablo III? Or just finding a community to post and chill in? Visit www.fanaticnetworks.com now!

  15. #15
    Offline
    Account Icon
    Join Date
    Sep 2009
    Location
    Duluth, MN, USA
    Posts
    2,530
    Quote Originally Posted by JillSandwich View Post
    I have a suggestion:
    change:
    Code:
    <editfile name="ui/game.interface">
    to:
    Code:
    <editfile name="ui/game.interface" condition = "not 'MiniUI'">
    this is so that it only changes the code in game.interface when miniUI is not enabled

    then add the miniUI minimap code:

    Code:
    <editfile name="ui/miniminimap.package" condition = "'MiniUI'">
    		<find><![CDATA[<map name="minimap" texture="!minimap_texture" watch="Minimap" onclick="If(MinimapClick(param0, param1), BreakDrag());" onrightclick="If(MinimapRightClick(param0, param1), BreakDrag());"/>]]></find>
    		<replace><![CDATA[map name="minimap" texture="!minimap_texture" watch="Minimap" onclick="Set(cg_cameraSmoothing,0); If(MinimapClick(param0, param1), BreakDrag());" onrightclick="If(MinimapRightClick(param0, param1), BreakDrag());" onmouseout="Set(cg_cameraSmoothing,1);"/>]]></replace>
    	</editfile>
    I did exactly this but am currently unable to test this
    link: http://dl.dropbox.com/u/4902702/smooth_edited.honmod
    if it works, feel free to use the code
    i actually tried that, but i couldn't get it to work. The miniminimap.package is applied through mini_hub.package...

    Quote Originally Posted by Sucker` View Post
    you missunderstood me. i know that i can change the scroll speed, but i want to reduce the time, the camera moves after you have stopped touching the screen border. (related to the movement this mod implements)
    Yeah, I thought of this while i was testing it. I'll add it to the to-do list... if anybody figures it out, let me know!


    Quote Originally Posted by revan_xp View Post
    would be cool to see a video of how this mod works.
    I'll do it tonight

  16. #16
    Offline
    Account Icon
    Join Date
    Aug 2009
    Location
    Luxor
    Posts
    217
    Quote Originally Posted by LonJAXsoN View Post
    i actually tried that, but i couldn't get it to work. The miniminimap.package is applied through mini_hub.package...
    Strange. I fixed those <find><![CDATA[ ]]> which werent working with Missclick Master just by adding right replacements for it and, ofc, conditions for them. Either if I apply Smooth with MCM or without MCM, this mod works on my PC in both cases.

    As you could understood, i haven't changed the engine of mod provided in .package files. It seems to be ok. The reason of incompatibility of your mod with MCM and MiniUI is in your mod.xml which has to contain right replacements for minimap. Anyway, I'd appreciate if someone test my version of LonJAXsoN's mod and tell us if it works.

    LonJAXsoN, I can try to help you to get your mod to work with MiniUI (if you'd like ofc ). PM me in that case please. Anyway, the idea of the mod is great and I bet you'll sovle all the issues.

  17. #17
    Offline
    Account Icon
    Join Date
    Sep 2009
    Location
    Duluth, MN, USA
    Posts
    2,530
    Quote Originally Posted by InSideR View Post
    Strange. I fixed those <find><![CDATA[ ]]> which werent working with Missclick Master just by adding right replacements for it and, ofc, conditions for them. Either if I apply Smooth with MCM or without MCM, this mod works on my PC in both cases.

    As you could understood, i haven't changed the engine of mod provided in .package files. It seems to be ok. The reason of incompatibility of your mod with MCM and MiniUI is in your mod.xml which has to contain right replacements for minimap. Anyway, I'd appreciate if someone test my version of LonJAXsoN's mod and tell us if it works.

    LonJAXsoN, I can try to help you to get your mod to work with MiniUI (if you'd like ofc ). PM me in that case please. Anyway, the idea of the mod is great and I bet you'll sovle all the issues.
    Thanks for your help, that MCM fix was pretty simple but i didn't know about the condition attribute. Thank you for doing that, i'll add that in.

    I tested it with MCM and smooth enabled, worked great from what i could tell.
    Last edited by LonJAXsoN; 11-26-2010 at 08:20 PM.

  18. #18
    Offline
    Senior Game Master Account Icon
    Join Date
    Sep 2009
    Posts
    3,031
    There is a scroll speed option in hon, increase it.

  19. #19
    Quote Originally Posted by qazqazqaz View Post
    There is a scroll speed option in hon, increase it.
    you missunderstood me. i know that i can change the scroll speed, but i want to reduce the time, the camera moves after you have stopped touching the screen border. (related to the movement this mod implements)
    At first he was like
    Quote Originally Posted by DrScout
    For the mods: Stop being racistic and stop moving/deleting threads without reasoning.
    but then
    Quote Originally Posted by DrScout
    While, of course, I hate russians with all of my passion and love...

  20. #20
    would be cool to see a video of how this mod works.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •