Home » MODDING HQ 1.13 » v1.13 Coding Talk » Code Snippets  () 1 Vote
Re: Code Snippets[message #353902 is a reply to message #353874] Thu, 28 June 2018 14:18 Go to previous messageGo to next message
Talion

 
Messages:15
Registered:June 2018
Hi, i'm using wine version 3.0 and there is no problem with the mouse wheel. What version are you using? I know that distros based on debian (Ubuntu etc.) by default ship that ancient version 1.6.2 where the mouse wheel doesn't work for me either.
Re: Code Snippets[message #353904 is a reply to message #353902] Thu, 28 June 2018 23:22 Go to previous messageGo to next message
sitharia
Messages:1
Registered:June 2018
Very interesting
Re: Code Snippets[message #353906 is a reply to message #353902] Fri, 29 June 2018 07:39 Go to previous messageGo to next message
Taleman

 
Messages:48
Registered:October 2010
Location: Finland
I'm using Debian GNU/Linux 9.4 Stretch. It has Wine version 1.8.7-2. But now I see stretch-backports has wine version 3.0-1. I'll try that.
icon7.gif  Re: Code Snippets[message #353907 is a reply to message #353906] Fri, 29 June 2018 07:49 Go to previous messageGo to next message
Taleman

 
Messages:48
Registered:October 2010
Location: Finland
I'll have to setup a test machine, I don't dare mess up this computer with broken systemd. But thanks for the heads-up, now there is hope of a working mouse wheel. Good show, @Talion. You are my hero! happy

root@yosemitesam:/home/taleman# LANG=C apt-get install -t stretch-backports wine 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 udev : Breaks: systemd (< 233-4)
        Breaks: systemd:i386 (< 233-4)
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
root@yosemitesam:/home/taleman#
Re: Code Snippets[message #353908 is a reply to message #353874] Fri, 29 June 2018 13:56 Go to previous messageGo to next message
sevenfm

 
Messages:1667
Registered:December 2012
Location: Soviet Russia
Taleman wrote on Sat, 23 June 2018 20:45
Could any JA2 coder be encouraged to fix using mouse wheel under Wine? I have played only under wine for a few years already, and it works better than under windows. Only thing that does not work is mouse wheel.

Testing notepad.exe under wine shows that mouse wheel can be made to work.

Please post bug reports in appropriate thread:
http://thepit.ja-galaxy-forum.com/index.php?t=thread&frm_id=216&



7609+fix | 7609+AI (r790) | 7609 unofficial modpack | Win8+ fix | Experimental project | Vengeance:Reloaded | Youtube

"It's already "dog-eat-dog", friend. Not sure what worse a bunch of zombies could do."


Re: Code Snippets[message #355351 is a reply to message #353872] Tue, 16 October 2018 15:04 Go to previous message
silversurfer

 
Messages:2409
Registered:May 2009
sevenfm wrote on Fri, 22 June 2018 19:00
in AIUtils.cpp:

UINT8 GetClosestFlaggedSoldierID( SOLDIERTYPE * pSoldier, INT16 aRange, UINT8 auTeam, UINT32 aFlag, BOOLEAN fCheckSight )
...
    // go through each soldier, looking for "friends" (soldiers on same team)
    for (uiLoop = gTacticalStatus.Team[ auTeam ].bFirstID; uiLoop < gTacticalStatus.Team[ auTeam ].bLastID; ++uiLoop)
    {
        pFriend = MercPtrs[ uiLoop ];
...

Why bLastID is not included in the loop?
Looking at other places in the code, bLastID is real last id of the team that should be used.
There are also some other places in the game code where bLastID is excluded from search.

Good catch. Fixed in r8629. There were quite a number of functions that ignored the last merc, including boxing, cleaning, repairs, dialogue, individual militia and opponent lists.



Wildfire Maps Mod 6.07 on SVN: https://ja2svn.mooo.com/source/ja2/branches/Wanne/JA2%201.13%20Wildfire%206.06%20-%20Maps%20MOD

Previous Topic: New Attachment System Beta
Goto Forum:
  


Current Time: Tue Oct 23 04:14:09 EEST 2018

Total time taken to generate the page: 0.01782 seconds