Board index » Present Evidence » Games

Page 1 of 1[ 8 posts ]
 


PyWright Version 1.1 SDL 2 GPU Acceleration and Python 3 UpdTopic%20Title

Gender: None specified

Rank: Suspect

Joined: Wed Apr 29, 2020 9:42 am

Posts: 3

This is a 1.1 update/release to the PyWright Casemaker. This release has been updated to pygame 2, python 3, and updated to support hardware acceleration with SDL 2.
Executable downloads available at https://gitlab.com/farorbit/pywright-gpu-dist (Linux and Windows) and source code at https://gitlab.com/farorbit/pywright-gpu.

If you are downloading a binary/exe, I would go into the folder for the os you want and click "Download this Directory."

Image

Featuring: better performance, fixed downloads, and better unicode support.
More info at: https://protop.link/2020/05/02/pywright-1-1-release/
Re: PyWright Version 1.1 SDL 2 GPU Acceleration and Python 3Topic%20Title
User avatar

Gender: Male

Rank: Medium-in-training

Joined: Tue Dec 29, 2009 12:08 pm

Posts: 336

Hi!

It's nice to see someone looking after one of the best case makers and keeping it up to date!

But, may I ask why did you use original Saluk's v0.9880 as a base instead of the newer improved version that Conflict of Interest runs on? It was customized by a C-R member known as E.D.Revolution and it has been nicknamed v0.989, despite this number AFAIR hasn't been officially implemented in data.txt (check also CoI main post for an alternate download link).

I can tell the difference because in the newer version the look of GUI has been improved.
Here are screens for comparison:
Your version........................................E.D.'s version
Image


Aside for these cosmetic chages, there had been also some serious upgrades and bug fixes made in core files. So, could you please look into this version and upgrade it as well? (And don't forget to credit E.D.Revolution!)

Also, for some unknown reasons, in your version I cannot use mouse button to choose evidence in my CR, only keyboard (for other GUI elements, mouse works fine).

As for the unicode support, I checked how do my diacritical marks work in your version, but with no plausible results. Sure, I get no errors anymore, but letters don't display correctly - instead of this:

Image

I've got something looking like this:

Image
Image
Re: PyWright Version 1.1 SDL 2 GPU Acceleration and Python 3Topic%20Title

Gender: None specified

Rank: Suspect

Joined: Wed Apr 29, 2020 9:42 am

Posts: 3

1) I originally did not base the new version on the 0.989 beta included with Conflict of Interest because it was missing several important source files I needed. It would have still been possible to base it on this version, but I would have needed to copy in the missing files and made sure that they worked properly.
2) Also, I compared the version I used for the 0.989 beta included with Conflict of Interest and noticed very few changes other than the changed evidence image sizes. (And also the new gui macros, but I left those alone. The macros also aren't generally dependent on the code anyway.)
-I have completed a diff (comparison) of the two versions and added most of the changes I found in the 0.989 beta in the latest version.

The broken click function in the evidence menu was actually an error. I fixed it along with the delete key deleting entire text boxes in the latest version.

The unicode support only works in the new default font. You either need to leave the default or use "set _font_nt NotoMono-Regular.ttf" and "set _font_tb NotoMono-Regular.ttf"
(*I tested on Windows and there seems to be an issue where boxes show up unless you explicitly set this font even though the default font should be the same. When
I added "set _font_nt NotoMono-Regular.ttf" and "set _font_tb NotoMono-Regular.ttf" with the size settings (set _font_nt_size 12, set _font_tb_size 13) to my test file/script it worked for me.)

Image
Image

"set _font_nt mingliu.ttc" is still necessary for Japanese or Chinese characters
Image
Re: PyWright Version 1.1 SDL 2 GPU Acceleration and Python 3Topic%20Title
User avatar

Gender: Male

Rank: Medium-in-training

Joined: Tue Dec 29, 2009 12:08 pm

Posts: 336

fartherorbit wrote:
I originally did not base the new version on the 0.989 beta included with Conflict of Interest because it was missing several important source files I needed. It would have still been possible to base it on this version, but I would have needed to copy in the missing files and made sure that they worked properly.
2) Also, I compared the version I used for the 0.989 beta included with Conflict of Interest and noticed very few changes other than the changed evidence image sizes. (And also the new gui macros, but I left those alone. The macros also aren't generally dependent on the code anyway.)

In fact, not only CoI, but most of major recent games including Ensnared Turnabout (the last case of Contempt of Court), Turnabout to El Dorado or Hexepta Fangame use this version. And the changes aren't by any means purely cosmetic. Back when I was a beta-tester for CoI, I remember encountering some annoying bugs and errors in 0.988 (here's an example of one of them), which have been resolved by switching to 0.989. Thus, founding your project on 0.988 instead of 0.989 may render said games unplayable.

Quote:
-I have completed a diff (comparison) of the two versions and added most of the changes I found in the 0.989 beta in the latest version.

For your convenience, I've compiled some list featuring major changes made for 0.989, aesthetic and gameplay-enchancing:

  • Changing bottom screen bgs for investigations ("Move" and "Talk" scripts). In each of the menus, they have their own UI and background (there was a black bg in 0.988).
  • GUI graphics ("main" backgrounds, "press" and "present" buttons, back, back_high, check and check_high buttons etc) have been updated.
  • A folder called "chains" is added. Old chains.mcro has been made obsolete with psychelocks.mcro
  • The lock sign you see for psyche locks is added. It's called "checkmark_lock" (Saluk included that option in his engine, but it never worked):
    Image
  • Magatama button from AJ has been added. It's under the psyche folder.
  • Issues with capitalization of characters' names have been fixed (no further problems with names such as von Karma)
  • Major bugfix: In 0.988, there was a serious bug in the CE. Whenever you back of presenting evidence in CEs, the bottom screen would turn black and be unusable. It has been fixed in 0.989.
  • Minor bugfix: the check/examine button has become properly aligned.
  • The evidence and cursor icons in the evidence menu are now be 40 x 40 instead of 36 x 36. The evidence menu graphics are updated to reflect that.
  • The health bar has been moved down 10 pixels and 4 pixels left
  • Perceive function has been improved and made to emulate the AJ sequence as much as possible. The perceive and perceive_high buttons have been added/updated (the previous perceive button was incredibly crappy).
  • Text alignment: The text is now spaced exactly how they are in the games.
  • Evidence menu Title Color: the name of the evidence is now orange like in original DS games.
  • Cross Examination Advance Button Alignment: It's now aligned lower on the bottom screen to emulate the DS games.
  • Sound effects for clicking buttons.

If I remember something else, I'll let you know.

Quote:
The broken click function in the evidence menu was actually an error. I fixed it along with the delete key deleting entire text boxes in the latest version.

Thanks! I'll download the new version and evaluate changes you've made.
Quote:
The unicode support only works in the new default font.


If so, then why does it work in evidence names, even with old fonts?

Image

Quote:
(*I tested on Windows and there seems to be an issue where boxes show up unless you explicitly set this font even though the default font should be the same. When
I added "set _font_nt NotoMono-Regular.ttf" and "set _font_tb NotoMono-Regular.ttf" with the size settings (set _font_nt_size 12, set _font_tb_size 13) to my test file/script it worked for me.)

Anyway, I could modify the new font with some font-editing software and supplement it with characters I need, just like I did with the previous one. I could send you all my modified fonts, so you could implement them in-game, what do you say?
Image


Last edited by Darth Wiader on Sat May 09, 2020 12:47 pm, edited 1 time in total.
Re: PyWright Version 1.1 SDL 2 GPU Acceleration and Python 3Topic%20Title
User avatar

Gender: Male

Rank: Medium-in-training

Joined: Tue Dec 29, 2009 12:08 pm

Posts: 336

A quick update from my side (sorry for double-posting). It turned out that my letters DO, in fact, WORK in your engine, even with the default font!!

All I had to do was to select a different type of encoding while saving my *txt files. For the record, this trick never worked in the previous versions of PyWright! Therefore, I can confirm that Unicode is now fully supported! BIG THANKS!

You're doing wonderful work, keep it up!
Image
Re: PyWright Version 1.1 SDL 2 GPU Acceleration and Python 3Topic%20Title
User avatar

Gender: Male

Rank: Medium-in-training

Joined: Tue Dec 29, 2009 12:08 pm

Posts: 336

I tried to run my test game on the newest version of your engine (last updated: five days ago) and I encountered an error:

Image

It never happened before in previous versions, what is the source of this problem?
Image
Re: PyWright Version 1.1 SDL 2 GPU Acceleration and Python 3Topic%20Title

Gender: None specified

Rank: Suspect

Joined: Wed Apr 29, 2020 9:42 am

Posts: 3

I posted a version that should fix the issue. It may be due to some bugfixes I added, but if not I would try deleting your log file because it may have become too big.
Re: PyWright Version 1.1 SDL 2 GPU Acceleration and Python 3Topic%20Title
User avatar

Gender: Male

Rank: Medium-in-training

Joined: Tue Dec 29, 2009 12:08 pm

Posts: 336

Thanks, now it works like it should.
Image
Page 1 of 1 [ 8 posts ] 
 
Display posts from previous:  Sort by  

 Board index » Present Evidence » Games

Who is online
Users browsing this forum: Google [Bot] and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list
Powered by phpBB

phpBB SEO