Author Topic: Plugin package  (Read 25516 times)

Offline fois

  • Grunt
  • ***
  • Posts: 248
  • Chicken
    • View Profile
Plugin package
« on: April 04, 2020, 07:19:40 PM »
Here you can download all my plugins in 1 package (it's easier to update for me like this...)

Extract war2-plugins.zip into your plugin folder and that's it. If you don't have a plugin folder then install WarCombat 46 standard or full.



The following plugins are included:

HardwareCursor Plugin - Can fix the laggy cursor on Windows 8/10
Ignore Plugin - Can permanently ignore players, even after a restart of the game
PlaySound Plugin - Plays a sound of your choice on events (Game Start/Join game)
AutoWarLat Plugin - Enables the WarLat patch automatically on game start (Same as setting the latency to high and then to low manually)
SmoothScroll Plugin - Changes keyboard and mouse scrolling to scroll 1 cell at a time rather than 2 cells (to get a smooth scroll effect)
MMblack Plugin - Changes the mini map color of the black player to any color you like (by default = pink) without changing the units/buildings colors



Download: https://github.com/FunkyFr3sh/Warcraft-II-Plugins/releases/latest/download/war2-plugins.zip
« Last Edit: August 27, 2024, 05:18:43 AM by fois »

Offline Nox

  • Death Knight
  • *********
  • Posts: 4133
    • View Profile
Re: Plugin package
« Reply #1 on: May 22, 2020, 06:45:57 PM »
Need a list of those plug in so we dint dl for no reason if we already have them.
Mr.120apm aka U8! Best player of the world losing 4v3 against Phillip5256.

Offline fois

  • Grunt
  • ***
  • Posts: 248
  • Chicken
    • View Profile
Re: Plugin package
« Reply #2 on: June 24, 2020, 07:05:41 PM »
Need a list of those plug in so we dint dl for no reason if we already have them.

Yeah, good idea. Updated the first post

Offline Lambchops

  • Ogre Mage
  • ********
  • Posts: 1541
    • View Profile
Re: Plugin package
« Reply #3 on: September 03, 2020, 02:32:21 AM »
@fois
Nice work on the plugins. Great stuff here  :thumbsup:

Rebuilt your autowarlat thing in ASM and added a fix for that annoying "*\/:><|+^&" message.

Feel free to use this if you want.
Code: [Select]
; Autowarlat by fois.   ASM conversion and additions from Lambchops
.486
.model flat, stdcall
option casemap :none

 include    \masm32\include\windows.inc
 include    \masm32\include\kernel32.inc
 includelib     \masm32\lib\kernel32.lib

PATCH_CALL_LOC    equ 420E01h  ; location of call offset to patch
PATCH_CALL_TARGET equ 477E60h  ; original patched call target
LAT_CALL_LOC      equ 477CC0h  ; address of latency set target
PATCH_LEN         equ      4h
STRINGTABLE_PTR   equ 4AE10Ch  ; location of game system string table
STRING_OFFSET     equ   0AF5h  ; offset of lat(0) message
WARLAT_LOC        equ 47862Eh  ; location of orig warlat patch
WARLAT_LEN        equ      7h


.code
   

patch_func:
 
  ; call orginal target func
  mov eax,PATCH_CALL_TARGET
  call eax
 
  ; patch string table
  mov eax,STRINGTABLE_PTR
  mov eax,[eax]
  add eax,STRING_OFFSET
  mov dword ptr[eax],  074754103h
  mov dword ptr[eax+4],07261576Fh
  mov dword ptr[eax+8],03A74616Ch
  mov byte  ptr[eax+12],20h
 
  ; set latency call
  push 0
  mov eax,LAT_CALL_LOC
  call eax
  pop eax
 
  ret


w2p_init proc
  pushad
  mov ebx,esp  ; local loc
  push 0       ; alloc local
 
 
  ; warlat patch
  push ebx
  push 4 
  push WARLAT_LEN
  push WARLAT_LOC
  call VirtualProtect
 
  mov eax,WARLAT_LOC
  mov dword ptr[eax],00499090h
  mov dword ptr[eax+3],90909090h
 
  push ebx
  push [ebx]
  push WARLAT_LEN
  push WARLAT_LOC
  call VirtualProtect

  ; autowarlat patch
  push ebx
  push 4
  push PATCH_LEN
  push PATCH_CALL_LOC
  call VirtualProtect
 
  mov edx,PATCH_CALL_LOC+4
  mov eax,OFFSET patch_func
  sub eax,edx
  mov [edx-4],eax
 
  push ebx
  push [ebx]
  push PATCH_LEN
  push PATCH_CALL_LOC
  call VirtualProtect
 
  pop eax        ; deaclloc local
  popad
  ret
w2p_init endp



DllMain proc hModule:DWORD, dwReason:DWORD, reserved:DWORD
  mov eax,1
  ret
DllMain endp

end DllMain

;autowarlat.def
;
;LIBRARY autowarlat
;EXPORTS
;w2p_init





 -- edit --

or if you want you can just zero the string and disable the message alltogether

like:

Code: [Select]
  ; patch string table
  mov eax,STRINGTABLE_PTR
  mov eax,[eax]
  add eax,STRING_OFFSET
  mov dword ptr[eax],  0h


of course it only changes the message on the local client, other players not using the plugin will still see "*\/:><|+^&"



« Last Edit: September 03, 2020, 02:52:59 AM by Lambchops »
its gooder to hax hard and NEVER get caught!

Offline fois

  • Grunt
  • ***
  • Posts: 248
  • Chicken
    • View Profile
Re: Plugin package
« Reply #4 on: September 09, 2020, 08:43:02 PM »
@fois
Nice work on the plugins. Great stuff here  :thumbsup:

Rebuilt your autowarlat thing in ASM and added a fix for that annoying "*\/:><|+^&" message.

Feel free to use this if you want.

Cool idea! Latest combat got the message fixed as well, but maybe it's useful for those that don't want to use the latest version

Offline Szwagier

  • Ogre Mage
  • ********
  • Posts: 1707
    • View Profile
Re: Plugin package
« Reply #5 on: April 13, 2021, 06:05:48 PM »
Hello @fois, I got question about ignore plugin cause sometimes in lobby I can see message from ignored people, any ideas to fix it?
http://www.youtube.com/user/SzwagierR


Equinox - the dumbest person in this game, do not argue with an idiot, because he will bring you to his level and overcome with experience

Offline fois

  • Grunt
  • ***
  • Posts: 248
  • Chicken
    • View Profile
Re: Plugin package
« Reply #6 on: April 13, 2021, 06:29:34 PM »
@Szwagier

EDIT: I found the problem, it only happened when the message was too long and it displayed the message in multiple lines.

Fixed it now, re-download the plugin from the first post
« Last Edit: April 13, 2021, 08:34:07 PM by fois »

Offline Szwagier

  • Ogre Mage
  • ********
  • Posts: 1707
    • View Profile
Re: Plugin package
« Reply #7 on: April 14, 2021, 02:03:48 AM »
Yes thats possbile I saw only long message, thank you
http://www.youtube.com/user/SzwagierR


Equinox - the dumbest person in this game, do not argue with an idiot, because he will bring you to his level and overcome with experience

Offline fois

  • Grunt
  • ***
  • Posts: 248
  • Chicken
    • View Profile
Re: Plugin package
« Reply #8 on: May 11, 2023, 05:05:26 PM »
Updated the plugin package with a new "MMblack" plugin that allows you to change the mini map color of the black player to any color you like (by default it's set to pink) - The units/buildings colors will not change using this plugin (they're still black)

Offline dannyldd

  • Grunt
  • ***
  • Posts: 225
    • View Profile
Re: Plugin package
« Reply #9 on: May 13, 2023, 05:35:53 PM »
Thanks for sharing Fois, bud. Always cool to see new content from you.

I've set up 245 and seems like good enough satisfying color on minimap. Thanks again!
« Last Edit: May 13, 2023, 05:43:37 PM by dannyldd »

Offline fois

  • Grunt
  • ***
  • Posts: 248
  • Chicken
    • View Profile
Re: Plugin package
« Reply #10 on: August 27, 2024, 05:14:24 AM »
All plugins have been rebuilt to lower the hardware requirements (they should all work now on a i486 CPU)

MMBlack
- Fixed a bug in the Black2Pink patch detection

HardwareCursor
- fixed hardware cursor auto resize on newer cnc-ddraw versions
- Can now hide the cursor the same way the original game did (e.g. on mission briefing or cutscenes)
- Removed animated cursors

lobby_map [NEW]
Made by lambchops, updated by me and zelya

- Fixed a bug/crash that could disable the map preview image
- Added new .ini setting to set custom coordinates for the map preview image
- Added new .ini setting to set custom colors/palette entries
- Does now detect the HardwareCursor plugin and disables the fake cursor that is drawn on top of the map preview image

Download: https://github.com/FunkyFr3sh/Warcraft-II-Plugins/releases/latest/download/war2-plugins.zip
« Last Edit: August 27, 2024, 05:16:28 AM by fois »