Project 1999

Go Back   Project 1999 > General Community > Technical Discussion

Reply
 
Thread Tools Display Modes
  #1  
Old 02-20-2018, 08:22 PM
Lobus Lobus is offline
Sarnak


Join Date: Jun 2016
Posts: 215
Default

Quote:
Originally Posted by Mirox [You must be logged in to view images. Log in or Register.]
Apparently Qt does not do DPI scaling by default? It looks like I can turn this on and it should work for your 2160p if you scale using your os (the person tested on windows).

I don't have 2160p, but I do have 1080p and the ability to do dpi scaling. I can test it out on my system, and if it works, I can release it. Currently redoing map engine to allow for layers in the maps and if I have the next release out this Sunday, I will 100% try to include DPI scaling awareness turned on.

Qt css doesn't allow VH -- px measurement only. But if the dpi awareness doesn't work, I can output dynamic px measurements based on your screen height.

In the meantime since I haven't tested this yet, you could open up a command line, set the environmental variable QT_AUTO_SCREEN_SCALE_FACTOR to 1

Code:
setx QT_AUTO_SCREEN_SCALE_FACTOR 1
nparse
That may fix it in the mean time, but it may need the sister code for that within the program.
awesome thanks man! I'll try to mess around with your suggestion but I doubt my abilities to do anything too crazy on the backend myself lol...
Reply With Quote
  #2  
Old 02-20-2018, 08:28 PM
Mirox Mirox is offline
Aviak


Join Date: Dec 2010
Posts: 92
Default

Quote:
Originally Posted by Lobus [You must be logged in to view images. Log in or Register.]
awesome thanks man! I'll try to mess around with your suggestion but I doubt my abilities to do anything too crazy on the backend myself lol...
Hah. [You must be logged in to view images. Log in or Register.] Well, the sister code I will take care of and I can set the environmental variable within the program, so the release won't have you doing anything with the prompt.

It was more a patch that most likely won't work, but I saw someone mentioning on a thread I was reading about 4k + pyqt5. They said it worked, others said it didn't.
Reply With Quote
  #3  
Old 03-13-2018, 05:48 AM
brews brews is offline
Large Rat


Join Date: May 2017
Posts: 8
Default

Hey, I was thinking of doing a live DPS parser and smack it into your program, but I have no skills with Qt5, so I would need some help on the UI side, or maybe how you got started with it.. I look at this more as a fun side project than something serious [You must be logged in to view images. Log in or Register.]

I'm looking at in memory time series databases for python to see what would be feasible and how long fights would be reasonable in memory. Otherwise I might succumb to a disk based version..

I'm thinking it should look similar to what you see in WoW nowadays:

http://i.imgur.com/sN5k66l.png
Reply With Quote
  #4  
Old 03-15-2018, 02:28 PM
Mirox Mirox is offline
Aviak


Join Date: Dec 2010
Posts: 92
Default

Quote:
Originally Posted by brews [You must be logged in to view images. Log in or Register.]
Hey, I was thinking of doing a live DPS parser and smack it into your program, but I have no skills with Qt5, so I would need some help on the UI side, or maybe how you got started with it.. I look at this more as a fun side project than something serious [You must be logged in to view images. Log in or Register.]

I'm looking at in memory time series databases for python to see what would be feasible and how long fights would be reasonable in memory. Otherwise I might succumb to a disk based version..

I'm thinking it should look similar to what you see in WoW nowadays:

http://i.imgur.com/sN5k66l.png
Hi. Feel free to clone my git and do what you want. I learned pyqt5 from the internet.

Your path could be like ->
1. how to make a Hello World pyqt5
2. pyqt5 best practices (there are some memory leak traps [parent references] you could be getting into)
3. start programming
4. Whenever you need to learn something, just look up what you are trying to learn on any search engine.

It's very similar to every other GUI framework I have used. Also I made a standard window class ParserWindow which you can use as a super class for your window. See either the Maps or Spells parser to find out how they use it. Add your parser to _load_parsers section in nparse.py and it will auto feed it text from the log file. The rest would be on you.

I have it written down to add self dps awareness, but not meters beyond a single fight with the option of auto exporting to csv. Tracking people's dps other than your own is very wonky as well since you need to be in range to see their hits plus worry about their procs, level of spells, whether or not the client is filtering combat items, etc. You will also have no way to tell whether something is a PC or NPC unless you have a filter for all possible NPC names.
Last edited by Mirox; 03-15-2018 at 02:34 PM..
Reply With Quote
  #5  
Old 08-21-2019, 09:06 PM
magicfest2 magicfest2 is offline
Aviak


Join Date: Jan 2015
Posts: 50
Default

Quote:
Originally Posted by brews [You must be logged in to view images. Log in or Register.]
Hey, I was thinking of doing a live DPS parser and smack it into your program, but I have no skills with Qt5, so I would need some help on the UI side, or maybe how you got started with it.. I look at this more as a fun side project than something serious [You must be logged in to view images. Log in or Register.]

I'm looking at in memory time series databases for python to see what would be feasible and how long fights would be reasonable in memory. Otherwise I might succumb to a disk based version..

I'm thinking it should look similar to what you see in WoW nowadays:

http://i.imgur.com/sN5k66l.png
Did you ever work on this? I was thinking about something similar, but if you've got any work started, I could go from there... Though guessing that since this was quite a while ago, you didn't get around to it?

Just checked it out today as I was thinking about doing my own but hate to reinvent the wheel -- this looks like a great app so far, can definitely just add to it. Are you open to a little bit of refactoring?
Reply With Quote
  #6  
Old 08-22-2019, 04:16 AM
brews brews is offline
Large Rat


Join Date: May 2017
Posts: 8
Default

I did make a quick text parser first to look at old logs, I also looked at other dps parsers.. it's .. not pretty..

The worst part is that its very inaccurate compared to what people are actually doing, and if your ranged, you wont get much melee as the range on dps is super low.

While you could do it.. it would be quite false readings..
Reply With Quote
  #7  
Old 08-11-2019, 12:24 AM
Donkey Hotay Donkey Hotay is offline
Banned


Join Date: Feb 2013
Posts: 233
Default

Hey Mirox, thank you for sharing nParse. I wonder if it's possible to set the background alpha transparent separately from the bars. Having a large black window blocking my side view is suboptimal =D.
Reply With Quote
  #8  
Old 08-11-2019, 02:34 PM
Mirox Mirox is offline
Aviak


Join Date: Dec 2010
Posts: 92
Default

Quote:
Originally Posted by Donkey Hotay [You must be logged in to view images. Log in or Register.]
Hey Mirox, thank you for sharing nParse. I wonder if it's possible to set the background alpha transparent separately from the bars. Having a large black window blocking my side view is suboptimal =D.
This is not how Qt5 works by default -- all children widgets take the transparency of their parent. I will have to research this. I can add this to a list of things to do.

Thanks for the suggestion!
Reply With Quote
  #9  
Old 08-11-2019, 02:30 PM
Gumbo Gumbo is offline
Fire Giant


Join Date: May 2015
Posts: 672
Default

Does anyone know if this works with Windows XP?

I have P99 installed on an older machine with Windows XP and if I try and run nParse, I get the following error message:

nparse.exe - Entry Point Not Found

The procedure entry point GetFinalPathNameByHandleW could not be located in the dynamic link library KERNEL32.dll
Reply With Quote
  #10  
Old 08-11-2019, 02:36 PM
Mirox Mirox is offline
Aviak


Join Date: Dec 2010
Posts: 92
Default

Quote:
Originally Posted by Gumbo [You must be logged in to view images. Log in or Register.]
Does anyone know if this works with Windows XP?

I have P99 installed on an older machine with Windows XP and if I try and run nParse, I get the following error message:

nparse.exe - Entry Point Not Found

The procedure entry point GetFinalPathNameByHandleW could not be located in the dynamic link library KERNEL32.dll
The binary is built on Windows 10. I think it will work on Windows 7/8/10. Unfortunately, I don't think I am going to support Windows XP for binary. I do not have a copy of Windows XP to test on.

If you really really really want the program to run on Windows XP, you can always run it from source and see if the appropriate libraries support Windows XP.


1. Get nParse master source (https://github.com/nomns/nparse/archive/master.zip or if you have git installed, "git clone https://github.com/nomns/nparse" in command prompt.
2. Install Python 3 (https://www.python.org/downloads/) -- ensure add python to path is selected during install.
3. Open up a command prompt, run "pip install pyqt5"
4. In the command prompt and within the source directory, "python nparse.py"
Last edited by Mirox; 08-11-2019 at 02:43 PM..
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:37 PM.


Everquest is a registered trademark of Daybreak Game Company LLC.
Project 1999 is not associated or affiliated in any way with Daybreak Game Company LLC.
Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.