Board index » Present Evidence » Games

Page 32 of 42[ 1674 posts ]
Go to page Previous  1 ... 29, 30, 31, 32, 33, 34, 35 ... 42  Next
 


Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

What am I Prosecuting fooooooor!?

Gender: Male

Rank: Medium-in-training

Joined: Wed Mar 07, 2007 7:03 pm

Posts: 467

Okay, I made a little something to contribute to PyWright enthusiast's. If this has already been made, then tell me I'm a stupid dink and laugh and throw tomato's at me.
Ever wanted the defense attorney think to themselves, and have the background behind them darken until it's all black? Well I've managed to whip something up that makes it possible.

I made a sheet with a defense background darken up here:
Spoiler:
Image


I put that in the bg folder. Since it animates you have to have a text file to go with it.
Code:
horizontal 11
vertical 1
length 11
loops 0

I called both the pic and text files "defensedark"

If you want to use it in the script,
Code:
bg defensedark stack name=dark
pause 110


I tested it out and it works smoothly. Like I said before, if anyone else came up with this, let me know, And I'll delete this waste of a post. I just thought it was pretty neat to share.
Re: PyWright Case Engine ver 0.976Topic%20Title

Gender: None specified

Rank: Desk Jockey

Joined: Sun Jul 11, 2010 1:03 am

Posts: 83

That's awesome. What gradation did you darken each image by?
Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

Gender: Male

Rank: Prosecutor

Joined: Thu Mar 06, 2008 8:36 pm

Posts: 770

That's neat SilentBobX, but a little more than needed to be done. Here's a way that doesn't require any extra art files:

Code:
bg defence
char phoenix
fg dbench
"Hello all."
bg black stack name=fader
fade name=fader start=0 end=40 wait
"{ethinking}(Now, what am I supposed to do?)"


You can play with the amount of fade etc.

But the technique you showed could be used for VERY cool animated backgrounds, such as a flickering streetlamp for a night scene, rain (although a scrolling foreground might be better for that), cars zooming by, or other neat things.
Creator of PyWright, the lovable case construction system!
Also visit the PyWright post.
Re: PyWright Case Engine ver 0.976Topic%20Title

Gender: Male

Location: The Netherlands

Rank: Decisive Witness

Joined: Fri Apr 23, 2010 1:24 pm

Posts: 195

Is it possible...to show the main character?
You know: when you play as Phoenix or Apollo you can't see them because you really play as them from their eye perspective.
I want to make an Ace Attorney Investigations game with our engine (using front view sprites of course).
It would give the game more charms if you can see Edgeworth.
Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

Gender: Male

Location: Melbourne, Australia

Rank: Ace Attorney

Joined: Thu Oct 08, 2009 10:56 am

Posts: 1371

miles_edgeworth - Of course it's possible to do that! PyWright isn't limited by the perspectives of Apollo or Phoenix. It just depends on whether you code it in correctly and have the frontal sprites. :)

The command you would be using a lot is

Code:
char X e=y


Where X is the name of the character's art files and y is the emotion.

:)
Image
Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

Gender: Male

Rank: Prosecutor

Joined: Thu Mar 06, 2008 8:36 pm

Posts: 770

And as for other AAI features, they could be emulated badly in the current edition with some complicated wrightscript coding; but more feasible down the road.
Creator of PyWright, the lovable case construction system!
Also visit the PyWright post.
Re: PyWright Case Engine ver 0.976Topic%20Title

Gender: Male

Location: The Netherlands

Rank: Decisive Witness

Joined: Fri Apr 23, 2010 1:24 pm

Posts: 195

It would be awesome if you could import the logic system.
Frontview sprites and backgrounds with logic and deduce-ing ( And all that other AAI stuf.)
Just like my comic!
I really want to make a game of it (my sprite comic..).
Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

Gender: Male

Rank: Prosecutor

Joined: Thu Mar 06, 2008 8:36 pm

Posts: 770

You can do logic, there is an example of it in AJAA: Justice's memoirs. Graphically it's not that close to AAI - it would be possible to do better graphics for it though.

Frontview sprites are just a normal sprite you can make, not a special feature that is needed.

The only really complex part of aai is walking around. A semi decent engine could be written with the current version, but closer emulation will be available in the future.
Creator of PyWright, the lovable case construction system!
Also visit the PyWright post.
Re: PyWright Case Engine ver 0.976Topic%20Title

Gender: Male

Location: The Netherlands

Rank: Decisive Witness

Joined: Fri Apr 23, 2010 1:24 pm

Posts: 195

Yeah, but the front view sprites + the logic and the deduce-ing is fine by me.

Well, its settled...I'm going to make a game of my sprite comic.
First I have to make the script and then selecting the right engine....
Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

The Trusty Nudal!

Gender: Male

Location: Utopia

Rank: Prosecutor

Joined: Mon Jun 22, 2009 2:35 am

Posts: 695

Hey saluk, I was wondering, is there anyway to have the press and present buttons on the top screen again? Because now when I run a trial the C-R button is at the bottom and it gets cut-off. Thanks :)
Image
Signature and Avatar by the wonderful Midnight Jasper! Check out her graphics, you will be impressed!
Check out my sprites!
Creator of Leon Prinze Ace Attorney - Final Judgment (Sprites by Ceres)
Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

A super dood

Gender: Male

Rank: Suspect

Joined: Thu Jul 29, 2010 1:23 am

Posts: 4

I am working on a series of video tutorials, I was wondering if you guys wanted me to cover things you're having trouble with.
Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

What am I Prosecuting fooooooor!?

Gender: Male

Rank: Medium-in-training

Joined: Wed Mar 07, 2007 7:03 pm

Posts: 467

mr.paco wrote:
I am working on a series of video tutorials, I was wondering if you guys wanted me to cover things you're having trouble with.


Well, I'd like to learn about the investigation phase. (Move, Talk, Examine, Present) Are you going to make video's of that now or later?
I'm pretty much getting the hang of the trial phase, put it'd be good to learn about the more in-depth stuff... If there are any.
Re: PyWright Case Engine ver 0.976Topic%20Title

Gender: None specified

Rank: Desk Jockey

Joined: Sun Jul 11, 2010 1:03 am

Posts: 83

mr.paco wrote:
I am working on a series of video tutorials, I was wondering if you guys wanted me to cover things you're having trouble with.

Actually, Saluk and I are working on some tutorials as well (although I've been particularly bad about it lately). We should probably collaborate.
Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

異議あり!

Gender: Male

Location: 日本

Rank: Suspect

Joined: Fri Sep 10, 2010 9:20 am

Posts: 11

Hello everybody.
PyWright is some wonderful piece of software, keep up the good work (I'm using the Mac version).
I was wondering if you could implement unicode support (as I'd like to make a Gyakuten Saiban game in Japanese). Python should be able to handle it alright, shouldn't it?
I have read a couple of posts on this topic about it, talking about problems with the font. I was wondering if I could use a standard font (say, MS PMincho), instead of coding a new one, just for japanese and just for this game. Any idea, someone?
Thank you.
Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

Programmer

Gender: Male

Location: Sweden

Rank: Bug Sweeper

Joined: Sun Mar 22, 2009 3:25 pm

Posts: 832

I have some technical comments.

Does the updater respect the os set http proxy? Does it even support proxies at all?

Do you think that you could follow the os file system design? That is, use folders correctly. Here is a short summary of the windows rules:
  • No paths can be hardcoded, they can and will change for various reasons (such as different os versions, localization and random admin acts). Ask the os with the provided api for what the current location is.
  • No writing to %program files%.
  • No writing to %my documents% unless explicitly directed so by the user.
  • Use %application data% for stuff the user can't be expected to understand (like save files).
    • There are both roaming and non roaming parts of %application data%, use the correct one.
  • Request elevation when performing administrative tasks and no sooner.

Currently working on a redesign of cr.net itself! Come talk to me about it on Discord!
Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

Gender: Male

Rank: Prosecutor

Joined: Thu Mar 06, 2008 8:36 pm

Posts: 770

Paradox: PyWright should already have unicode support. It's something I added a long time ago. Of course, since no one used the feature, and it has been some time again, it may need some more care :) Also, there is no support for changing fonts at this time, though you could provide a replacement for the pwinternational.ttf in the fonts directory. Pywright 2.0 has much better font support, being able to choose your font at will, but I'll look into doing something like that for 1.0 series as well if it is important.

henke37: thanks for bringing this stuff up!

I'm not sure what I have to do to allow proxies, but I'll look into it. It shouldn't be too difficult. I think it might already respect os proxy. Have you tried it? Did it work or not?

Default behavior of the opening function:

[quote=python doc]
Cause requests to go through a proxy. If proxies is given, it must be a dictionary mapping protocol names to URLs of proxies. The default is to read the list of proxies from the environment variables . If no proxy environment variables are set, in a Windows environment, proxy settings are obtained from the registry’s Internet Settings section and in a Mac OS X environment, proxy information is retrieved from the OS X System Configuration Framework.[/quote]

Besides save data, I don't violate any of those os conventions. Personally I like how it is all self contained. I can copy my pywright folder alone to another computer and all of the games and save files and configuration will be intact. There are benefits of course to the other way, in that you could delete the folder and extract pywright again fresh and keep your other files intact. The way I did pathing makes it pretty tough to change this aspect, again 2.0 wins out here. At some point I will probably have my documents/app data support as a togglable option, but not in the next version for sure.

(In fact, I thought save files are supposed to go to my documents by convention. Most of my saves are in my documents, or my documents/my games. Arg. To continue the rant, every game follows the convention differently. Several of my games I have to hunt around for saves and it irritates the heck out of me. Ah well, rant over)


Mini update:
The focus in the next version is on debug type things to help people find errors easier. There are also a few other minor things. Estimated in about a week.
Creator of PyWright, the lovable case construction system!
Also visit the PyWright post.
Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

Programmer

Gender: Male

Location: Sweden

Rank: Bug Sweeper

Joined: Sun Mar 22, 2009 3:25 pm

Posts: 832

No, I have not tested with any proxy. It works fine with the windows proxy settings.

I am not sure if the updater follows the policy. Maybe you should use %program data% for downloaded assets? Either way, you should probably require elevation. I am not fully sure. Of course, the policy varies on each os. Mac OSX has it's own policy for where stuff should go and posix has the traditional /bin /share /etc system. Each os is unique indeed.

One thing that I didn't bring up is the "games" folder that Vista introduced. Integrating with that would be a nice touch. But you might need a proper installer for that one.

One thing worth noting is that you wont see the trademarked "designed for windows" logo unless you follow Windows policy. Microsoft has automated tools to catch violators. I think they might offer the tools for free.

As a freebie, you can have a look at my gigantic log of everything that has happened since started using the engine. This includes all errors I have seen I suppose.
Currently working on a redesign of cr.net itself! Come talk to me about it on Discord!
Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

Gender: Male

Rank: Prosecutor

Joined: Thu Mar 06, 2008 8:36 pm

Posts: 770

It won't require elevation because it never stores anything outside of the PyWright directory. I'm pretty sure on windows that developers don't have to ask for permissions - the OS detects when something that needs permissions occurs and does the asking. If that's not how it works, than the security model is broken, as any virus writer could just not ask and do what they want.

Just to clarify, downloads are stored in PyWright/downloads, cache is in core/cache, and saves are stored with their respective games. Personally I'm not tied to this organization, and am open to at least letting users configure some of these directories. I think that would be the best solution in the long run, as people can still fix it if it guesses incorrectly. In the short run, it's fairly difficult to change how PyWright understands these paths, so it will maybe be a few versions before I figure out what I want to do with it. 1.0 is probably a good target for this kind of change.
Creator of PyWright, the lovable case construction system!
Also visit the PyWright post.
Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

異議あり!

Gender: Male

Location: 日本

Rank: Suspect

Joined: Fri Sep 10, 2010 9:20 am

Posts: 11

saluk wrote:
Paradox: PyWright should already have unicode support. It's something I added a long time ago. Of course, since no one used the feature, and it has been some time again, it may need some more care :) Also, there is no support for changing fonts at this time, though you could provide a replacement for the pwinternational.ttf in the fonts directory. Pywright 2.0 has much better font support, being able to choose your font at will, but I'll look into doing something like that for 1.0 series as well if it is important.

Thank you for your reply. :)
Unfortunately, this is what happens when i try to run the code on the right, encoded in unicode. It reports the same error on every line.
Spoiler:
Image

On the other hand, if i try to put another font, swapping it for pwinternational.tff in the "fonts" folder, i get a "undefined: subsurface rectangle outside surface area" error.
Thank you, again, and sorry to bother.
Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

Gender: Male

Rank: Prosecutor

Joined: Thu Mar 06, 2008 8:36 pm

Posts: 770

Ok, that confirms that the unicode support is not working in the latest PyWright. It will definitely be there in the next version!
Creator of PyWright, the lovable case construction system!
Also visit the PyWright post.
Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

Gender: Male

Rank: Prosecutor

Joined: Thu Mar 06, 2008 8:36 pm

Posts: 770

And here's a preview of the next version with unicode support:

http://pywright.dawnsoft.org/fixes/pywright_unicode.zip

Copy and replace into PyWright/core, and overwrite pwinternational.ttf with your japanese font and rename to pwinternational.ttf. I'll hopefully have a better font solution for the actual release.
Creator of PyWright, the lovable case construction system!
Also visit the PyWright post.
Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

異議あり!

Gender: Male

Location: 日本

Rank: Suspect

Joined: Fri Sep 10, 2010 9:20 am

Posts: 11

Thank you very much.
With the new files you posted, i could get japanese fonts to work, but i get an error every time i run the same script as before:
Runtime error, click to continue
Undefined:_init_() keywords must be strings
scene:'scene2.script', line '6'

did i make some mistake in my code?
thank you
Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

Gender: Male

Rank: Prosecutor

Joined: Thu Mar 06, 2008 8:36 pm

Posts: 770

Can you post the script via text? I have an idea of what's causing the error but can't make it happen. It's most likely another bug with unicode I didn't catch.
Creator of PyWright, the lovable case construction system!
Also visit the PyWright post.
Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

異議あり!

Gender: Male

Location: 日本

Rank: Suspect

Joined: Fri Sep 10, 2010 9:20 am

Posts: 11

Spoiler:
Code:
set _cr_button true
nt

"{center}{type}{c090}11 Settembre, 11:46{n}Roma{n}Villa Ada{n}"
pause
bg campingsiteb fade

char Minami hide
"日本語テスト ひらがな カタカナ 漢字"
"{c089}{sound blipfemale.ogg}(Yokatta...!{p25} Yatto tsuita! {p20}{n}Tookatta!)"
"{c089}{sound blipfemale.ogg}(Micheleha dokoni iru darou?)"


char ??? hide
"Minami!{p20}{n}{delay 1}Shinpaishitetayo."
mus 19 - Congratulations Everybody.ogg
pause 60
char Hobo e=heh fade nametag=Michele
"Daijoubu?{p20}{n}{delay 1}{ebigeyed}{p25}Yappari neboushitetadeshou?"

char Minami hide
"{sound blipfemale.ogg}Iya! Chigau!{p25}"

char Hobo e=laughs nametag=Michele
pause 30
"Iiyo! Mondai nai.{p25} {enice}Minnaga irukara, chotto aisatsushitekite ne.{p25}"

char Minami hide
"{sound blipfemale.ogg}Michelemo isshoni kite!{p25}"


If you need, we can speak on msn.
Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

Programmer

Gender: Male

Location: Sweden

Rank: Bug Sweeper

Joined: Sun Mar 22, 2009 3:25 pm

Posts: 832

Windows does not work like that. It does not try to detect when applications want to do stuff. It has two options, start the process with the full user privilege security token or use the normal user access security token. Executables should specify which token they want, if not windows will take a guess based on the executable. The os may prompt the user to approve or to provide an admin login as needed if the chosen token is the administrative one.
Once a process has been started, it can't change token I think. And windows will most certainly not just ask the user to change it for the application if the application tries to do anything forbidden. It will simply deny the request, whatever it was. This is a critical principe in the windows security system.

And writing to the program install folder is a no no for normal users in any secure system (that does include windows, mac osx and posix).
Currently working on a redesign of cr.net itself! Come talk to me about it on Discord!
Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

Gender: Male

Rank: Prosecutor

Joined: Thu Mar 06, 2008 8:36 pm

Posts: 770

Paradoxpm wrote:
Spoiler:
Code:
set _cr_button true
nt

"{center}{type}{c090}11 Settembre, 11:46{n}Roma{n}Villa Ada{n}"
pause
bg campingsiteb fade

char Minami hide
"日本語テスト ひらがな カタカナ 漢字"
"{c089}{sound blipfemale.ogg}(Yokatta...!{p25} Yatto tsuita! {p20}{n}Tookatta!)"
"{c089}{sound blipfemale.ogg}(Micheleha dokoni iru darou?)"


char ??? hide
"Minami!{p20}{n}{delay 1}Shinpaishitetayo."
mus 19 - Congratulations Everybody.ogg
pause 60
char Hobo e=heh fade nametag=Michele
"Daijoubu?{p20}{n}{delay 1}{ebigeyed}{p25}Yappari neboushitetadeshou?"

char Minami hide
"{sound blipfemale.ogg}Iya! Chigau!{p25}"

char Hobo e=laughs nametag=Michele
pause 30
"Iiyo! Mondai nai.{p25} {enice}Minnaga irukara, chotto aisatsushitekite ne.{p25}"

char Minami hide
"{sound blipfemale.ogg}Michelemo isshoni kite!{p25}"


If you need, we can speak on msn.


I don't get any errors. Make sure you save the script in utf8 format.

henke37 wrote:
Windows does not work like that. It does not try to detect when applications want to do stuff. It has two options, start the process with the full user privilege security token or use the normal user access security token. Executables should specify which token they want, if not windows will take a guess based on the executable. The os may prompt the user to approve or to provide an admin login as needed if the chosen token is the administrative one.
Once a process has been started, it can't change token I think. And windows will most certainly not just ask the user to change it for the application if the application tries to do anything forbidden. It will simply deny the request, whatever it was. This is a critical principe in the windows security system.

And writing to the program install folder is a no no for normal users in any secure system (that does include windows, mac osx and posix).


Ok, that makes sense. I won't be requesting an elevated token, because in normal use, games should not need administrative rights.
It is very typical for games without installers to write to their own folder. Certain high profile applications like steam write a ton of stuff to their program folder. As mentioned, I won't be changing this soon, but will probably add paths to the configuration sometime in future.
Creator of PyWright, the lovable case construction system!
Also visit the PyWright post.
Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

異議あり!

Gender: Male

Location: 日本

Rank: Suspect

Joined: Fri Sep 10, 2010 9:20 am

Posts: 11

The files are already encoded in UTF-8
I think i found what causes the error: it gets triggered when i fade in a character.
Spoiler:
Code:
pause 300
char ??? hide
"{sound blipfemale.ogg}すやすや~"
pause 150
mus cellphone.ogg
pause 300
"{sound blipfemale.ogg}{delay 1}あれ?{p60} 今何時?{p100} 携帯か?{p60}"
mus
pause 50
sfx blip.ogg
pause 100
char Minami hide
"{sound blipfemale.ogg}もしもし?面田です。{p60}"
char Michele hide
"{c080}{delay 1}みなみ?どこにいるの?{p40} ここはみんな待ってるよ!{p60}"
char Minami hide
"{sound blipfemale.ogg}え?待ってるって?何で?{p60}"
char Michele hide
"{delay 1}{c080}...{p60}...もしかして、寝坊したの??"
sfx shock.ogg
char Minami hide
"{sound blipfemale.ogg}{f}{s}...きゃあ~~!{p60} ピックニックは今日だった!!"
pause 100
mus 14 - Turnabout Sisters' Theme 2001.ogg
pause 100
char Maya e=confident nametag=Minami fade
"{p60}{sound blipfemale.ogg}私は面田みなみです。"
char Maya e=cheerful nametag=Minami
"今日はピックニックありますが、少し寝坊したみたいですね。"
"{p60}{sound blipfemale.ogg} さあ、準備してから、行きましょう! {econfident}{p30} みんなを紹介します!{p60}"
bg nothing fade
pause 100
mus
pause 150

clear

script scene2

With this code i get the previous error (Undefined:_init_() keywords must be strings) pointing at line 26 (the char fade line). Also, even if i delete the fade argument, the error disappears, but the following lines have problems. E.g. blank box, half of the sentence beyond the lower border of the box, etc.
Hope we can figure this out.
Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

Gender: Male

Rank: Prosecutor

Joined: Thu Mar 06, 2008 8:36 pm

Posts: 770

Awesome. It might be related to the revamped fading code. Until I sort that out, don't use fades. I haven't tested fading on a mac, so that could be a clue, however the error is suggestive of a unicode issue. Maybe it's both :) Could you send a log file from when the fade crash occured? Also, try adding "pygame.use_numpy = False" at line 31 of core/core.py, and see if that fixes it or not.

You will want to "set _textbox_wrap off", as word wrapping conventions for each language are quite different. You can then use {n} to space out your texts exactly as you want them to be. This should fix the spacing issues. It was thinking all of your text was one long line, and doesn't know how to break up long lines without spaces. Very anglo-centric :)

Thanks for the feedback!
Creator of PyWright, the lovable case construction system!
Also visit the PyWright post.
Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

異議あり!

Gender: Male

Location: 日本

Rank: Suspect

Joined: Fri Sep 10, 2010 9:20 am

Posts: 11

Thank you for your reply.

Changed the code to:

Code:
try:
    import numpy
    pygame.sndarray.use_arraytype("numpy")
    pygame.use_numpy = True
except:
    numpy = None
    pygame.use_numpy = False
pygame.use_numpy = False
sw,sh = 256,192
#sw,sh = 640,480
spd = 6


but still not working. I tried to run the script in Windows, but i get the same error as the Mac version.

Also, i noticed two problems.

First, i get no lip sync. Characters are stuck at their standard pose: in other words, they're not moving their mouth.

Second, the namebox still displays squares if i enter japanese text in it.

Let me know if you want me to test anything else. :)

Edit: here's the log
Spoiler:
Code:
This log contains debugging and error messages from the last run.
load script intro
games/Test
games/Test/Test
customizing defaults
resetting defaults
games/Test
games/Test/Test
games/Test
games/Test/Test
resetting defaults
core\libengine.py:538: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
Traceback (most recent call last):
  File "core\libengine.py", line 520, in update
  File "core\libengine.py", line 584, in interpret
  File "core\libengine.py", line 628, in execute_line
  File "core\libengine.py", line 1514, in _char
  File "core\libengine.py", line 1734, in _fade
TypeError: __init__() keywords must be strings
Traceback (most recent call last):
  File "core\libengine.py", line 520, in update
  File "core\libengine.py", line 584, in interpret
  File "core\libengine.py", line 628, in execute_line
  File "core\libengine.py", line 1430, in _bg
  File "core\libengine.py", line 1408, in _obj
  File "core\libengine.py", line 1734, in _fade
TypeError: __init__() keywords must be strings
games/Test
games/Test/Test
games/Test
games/Test/Test
resetting defaults
Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

Gender: Male

Rank: Prosecutor

Joined: Thu Mar 06, 2008 8:36 pm

Posts: 770

Awesome that helped. This should hopefully fix all issues:

http://pywright.dawnsoft.org/fixes/unicode-fix2.zip

I don't know why it was working on my dev machine but not anywhere else, but it was related to unicode. I've added a new variable called "_punctuation", which is set to all of the punctuation that shouldn't be lip synced. Before it was hardcoded english alphabet which is why they weren't lip synced. Now it will lip sync any character not in the _punctuation variable. Check macros/defaults.mcro for the default value of this variable.

Let me know if anything else comes up (it's very possible with unicode, touches a lot of things).
Creator of PyWright, the lovable case construction system!
Also visit the PyWright post.
Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

異議あり!

Gender: Male

Location: 日本

Rank: Suspect

Joined: Fri Sep 10, 2010 9:20 am

Posts: 11

Wonderful!
Now everything is lip synced and fade works too.
Thank you!
However, i still have two problems (let's try and fix everything while we're at it! :) ).

- As you can see from the picture down here, the namebox still displays squares when i put japanese characters in it.
Spoiler:
Image


- Even though i put the "set _textbox_lines 2" argument in the intro.txt script, the textbox still displays the text on 3 lines. While it's ok for latin characters, you can notice that japanese is barely readable, especially with complex characters. Try and compare the characters in the above image with the underlined ones in the next sentence.
Quote:
よかった・・・!やっといた!かった!

It gets kind of cramped up, doesn't it?
Having only 2 lines of text (like in the original version of Gyakuten Saiban), would allow us to have a bigger-sized font (even though I must admit I don't know how to adjust the font size), improving readability for japanese and any other complex language.

Again, thank you for the support and the great work.

Edit: Managed to increase the font size to 14, in core.py, so the text is now readable even with 3 lines. Still no luck with the squares in the namebox though.
Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

Gender: Male

Rank: Prosecutor

Joined: Thu Mar 06, 2008 8:36 pm

Posts: 770

Next hotfix does not require hardcoding the font size in core.py :)

Also, you should be able to use japanese font/characters in the court record as well.

Here is an exerpt from the modified core/macros/defaults.mcro which shows how to change the fonts and font sizes:

Code:
set _font_tb pwinternational.ttf
set _font_tb_size 10
set _font_block arial.ttf
set _font_block_size 10
set _font_nt arial.ttf
set _font_nt_size 10
set _font_list pwinternational.ttf
set _font_list_size 10
set _font_itemset pwinternational.ttf
set _font_itemset_size 10
set _font_itemset_big arial.ttf
set _font_itemset_big_size 14
set _font_itemname pwinternational.ttf
set _font_itemname_size 10
set _font_loading arial.ttf
set _font_loading_size 16
set _font_gametitle arial.ttf
set _font_gametitle_size 16
set _font_new_resume arial.ttf
set _font_new_resume_size 14


Important are the tb(textbox), block (textblock, also item descriptions), list (lists), itemset (evidence/profiles text), itemname (item titles on court record). I'm not sure if you can actually change the gametitle font before the game title is actually displayed, and you can't change the loading or new/resume texts so it doesn't do much good to change those fonts.

_textbox_lines apparently wasn't hooked in anymore, so I have changed it to default to 3 lines (which is basically what it has been doing), and setting it to 2 lines will work.

You can also include your font in your game/fonts directory and it will work for your game and not mess up other games. Switching between fonts in game is a bit annoying (the english characters don't look that great in the japanese font I was testing with. If I were to mix languages in the game, I might want to for instance use one font for the english characters and another font for japanese), so I might at a later time make it a bit easier to do. Not sure how important that is.

And the link: http://pywright.dawnsoft.org/fixes/unicode-fix3.zip
Creator of PyWright, the lovable case construction system!
Also visit the PyWright post.
Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

異議あり!

Gender: Male

Location: 日本

Rank: Suspect

Joined: Fri Sep 10, 2010 9:20 am

Posts: 11

awesome!
works flawlessly!
thank you!

the "fade" command (not the "char" argument) still doesn't work though (same error as before)
Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

Gender: Male

Rank: Prosecutor

Joined: Thu Mar 06, 2008 8:36 pm

Posts: 770

Did the fade command work on one of the other updates, or has it not worked the entire time?
Creator of PyWright, the lovable case construction system!
Also visit the PyWright post.
Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

異議あり!

Gender: Male

Location: 日本

Rank: Suspect

Joined: Fri Sep 10, 2010 9:20 am

Posts: 11

Never worked! :(
Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

Gender: Male

Location: Melbourne, Australia

Rank: Ace Attorney

Joined: Thu Oct 08, 2009 10:56 am

Posts: 1371

Quote:
My PyWright converter for aao is pretty much finished


Oh? If it can convert a trial successfully then this will be good news. I'd love to be able to use it when it's released so I can continue with using two engines successfully. :)
Image
Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

Gender: Male

Rank: Prosecutor

Joined: Thu Mar 06, 2008 8:36 pm

Posts: 770

Tap:
The qualifier is pretty much :) If you don't use any expressions it should work. If you want to help me test it, give me some of your links, and I'll send you some games to test. You can tell me what parts are wonky. I'm still not sure how I should distribute it. I'll probably make it a web app like the sheet converter. (Hey, it's aao, that actually makes some sense in this case)

Paradoxpm:
Really? You said "Now everything is lip synced and fade works too." Now I'm really confused... What error are you getting for fade?
Creator of PyWright, the lovable case construction system!
Also visit the PyWright post.
Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

異議あり!

Gender: Male

Location: 日本

Rank: Suspect

Joined: Fri Sep 10, 2010 9:20 am

Posts: 11

Sorry, i couldn't explain myself well.

"char fade" and "bg fade" work, but
"bg black stack name=fader
fade name=fader start=0 end=40 wait"
doesn't.
I hope you understand what i mean now.
I get the "Undefined:_init_() keywords must be strings" error
Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

Gender: Male

Rank: Prosecutor

Joined: Thu Mar 06, 2008 8:36 pm

Posts: 770

Can I see your log again? That shouldn't be happening...
Creator of PyWright, the lovable case construction system!
Also visit the PyWright post.
Re: PyWright Case Engine ver 0.976Topic%20Title
User avatar

Gender: Male

Rank: Prosecutor

Joined: Thu Mar 06, 2008 8:36 pm

Posts: 770

Ok, I went over the code with a fine tooth comb. The error still baffles, but give it a shot!

http://pywright.dawnsoft.org/fixes/unicode-fix4.zip
Creator of PyWright, the lovable case construction system!
Also visit the PyWright post.
Page 32 of 42 [ 1674 posts ] 
Go to page Previous  1 ... 29, 30, 31, 32, 33, 34, 35 ... 42  Next
 
Display posts from previous:  Sort by  

 Board index » Present Evidence » Games

Who is online
Users browsing this forum: No registered users and 4 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:  
cron
News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list
Powered by phpBB

phpBB SEO