Board index » Present Evidence » Games

Page 1 of 1[ 16 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: 6

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/

Visit my site Protop.link!
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: 346

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: 6

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

Visit my site Protop.link!
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: 346

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: 346

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: 346

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: 6

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.
Visit my site Protop.link!
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: 346

Thanks, now it works like it should.
Image
Re: PyWright Version 1.1 SDL 2 GPU Acceleration and Python 3Topic%20Title
User avatar

The one with many faces

Gender: Male

Rank: Desk Jockey

Joined: Thu Sep 23, 2010 1:33 am

Posts: 146

Holy crap, I didn't even know this existed.

I did forget that I did include 0.989 as a base for my series.

Me being back after 5 years out of the game and restarting my project... I gotta see how this will work here. Whether or not I want to use my version or upgrade to this one...

EDIT: Can I ask... besides the unicode fix for diacritics, what other changes have been made between 0.989 and this? I do not have the time nor patience to go through the whole code to compare.

EDIT2: I'm sorry, but I do not approve of any of these fixes. Here's the reason why: I'm testing Mia Fey: Ace Spirit Attorney, and it actually broke the game. Like literally my game won't start. You really should've taken Darth's advice and used 0.989 as a base, because it looks like 0.988 is still the base and it's breaking games.
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: 6

As previously stated, I downloaded .0988 at the time I updated and didn't realize I wasn't using the most updated/0.989 and later rebased it to 0.989 (so the code is pretty much on par to 0.989 with some more bug fixes). If there are any other bugs, I could take a look at them.

Also, I am not sure what issue you are having, but I have just tested Mia Fey: Ace Spirit Attorney and it seems to be working fine.

Image

Image

The major updates are listed here. (https://protop.link/2020/05/02/pywright-1-1-release)
Visit my site Protop.link!
Re: PyWright Version 1.1 SDL 2 GPU Acceleration and Python 3Topic%20Title
User avatar

The one with many faces

Gender: Male

Rank: Desk Jockey

Joined: Thu Sep 23, 2010 1:33 am

Posts: 146

Your examples are actually proving by my point. When I tried to use my copy I couldn't click on anything on the case selection screen except back. My sweet effects weren't coming out. Your second pic shows your engine is bugged. There is supposed to be a background on both screens.
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: 6

I see what you mean. I'm looking into it now.
Visit my site Protop.link!
Re: PyWright Version 1.1 SDL 2 GPU Acceleration and Python 3Topic%20Title
User avatar

The one with many faces

Gender: Male

Rank: Desk Jockey

Joined: Thu Sep 23, 2010 1:33 am

Posts: 146

Yeah, seriously dude. It doesn't seem that the 0.989 core changes have been incorporated at all. This is why I said you should have taken Darth's advice. How do I know it wasn't incorporated? Those changes listed viewtopic.php?p=1453275#p1453275 aren't incorporated.

  • HP bar is back to the 0.988 version
  • Text alignment is back to 0.988 version
  • CE Advance buttons back to 0.988 version
  • Evidence menu title color back to 0.988 version
  • Your engine is throwing a lot of errors not present in 0.989.
  • It's not being able to find art assets even though it exists.
  • It's skipping a lot of dialogue. Especially when using double backslash to indicate "do not read", it's skipping more than just the double backslash.
  • Syntax parsing is broken. When using list command, it doesn't redirect to the label even though it exists. More apparent if the list item has more than one word.
  • When testing saves, the engine thinks I've seen that text while the exact same save on 0.989 correctly shows that the I haven't seen the text.

My game is seriously bugged on this version, but virtually bug-free on 0.989. Hell, experiments I was testing back in the day on 0.989 do not work on 1.13.
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: 6

I have fixed the issue (the code was not searching subdirectories) but am not able to upload a new compiled version/exe build due to an error/issue. (an error/issue not really related to the code/project itself) With the current build, copying the files from the art/sfx folder in each case's folder to the main art/sfx folder of the base game or the main pywright art/sfx folders seems to work. ("Mia Fey - Ace Spirit Attorney (Distribution Copy)/The_Tortured_Turnabout/art" -> "Mia Fey - Ace Spirit Attorney (Distribution Copy)/data/art") I have updated the source repository but not the binary's repository. Because of this error/issue, I probably won't be able to continue the project. Sorry. I know this post isn't particularly helpful, but I wanted to at least let you know the status of the project instead of disappearing. Thank you for all your work and the information.
Visit my site Protop.link!
Re: PyWright Version 1.1 SDL 2 GPU Acceleration and Python 3Topic%20Title
User avatar

The one with many faces

Gender: Male

Rank: Desk Jockey

Joined: Thu Sep 23, 2010 1:33 am

Posts: 146

Since I got back into the game, I'm trying to figure out what changes you made in the code compared to 0.989. Admittedly some changes you have made are working, but a lot of stuff that was working in 0.989 is not working 1.13
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: 346

fartherorbit wrote:
Because of this error/issue, I probably won't be able to continue the project. Sorry. I know this post isn't particularly helpful, but I wanted to at least let you know the status of the project instead of disappearing.


Could you at least drop a hint on how to incorporate Unicode support in 0.989, if possible? :sadshoe:
Image
Page 1 of 1 [ 16 posts ] 
 
Display posts from previous:  Sort by  

 Board index » Present Evidence » Games

Who is online
Users browsing this forum: No registered users and 6 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