Board index » Present Evidence » Games

Page 39 of 42[ 1674 posts ]
Go to page Previous  1 ... 36, 37, 38, 39, 40, 41, 42  Next
 


Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

Gender: Male

Rank: Medium-in-training

Joined: Tue Dec 29, 2009 12:08 pm

Posts: 361

...and how to predict amount of player's HP?
Or are you saying to write different code for every possibly status of player's healthbar?
Could you put a sample of script?
Image
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

The one with many faces

Gender: Male

Rank: Desk Jockey

Joined: Thu Sep 23, 2010 1:33 am

Posts: 146

It is incredibly easy to predict the player's HP. It's either at or above the penalty threat, or it's below the penalty threat. That's all you need to do as far as predicting the player's HP.

These sample scripts are for double penalties. Can be applied where you will be dealing with a player's HP.

(This one at the start of a CE script)
Code:
set penalty 100
is penalty >= 40 regcost
set cost 0
subvar cost $penalty
set risk $penalty
goto court
label regcost   
set risk 40
set cost -40
label court
*insert variables from court template*


And one before a wrong objection.
Code:
is penalty >= 40 setup
set cost 0
subvar cost $penalty
set risk $penalty
label setup
*code for a false objection*


And then, at the start of the actual failure convo:
Code:
penalty variable=penalty threat=$risk delay=0


And when you actually punish the player:
Code:
sfx Penalty
penalty $cost variable=penalty delay=8


You can omit variable=penalty since that is usually the default variable for court hp.
Image
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

Gender: Male

Rank: Medium-in-training

Joined: Tue Dec 29, 2009 12:08 pm

Posts: 361

Wow!
Seeing how ubiquitous this problem was, I never thought it could be so easily avoided! Thanks!
Image
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

Gender: Male

Rank: Prosecutor

Joined: Thu Mar 06, 2008 8:36 pm

Posts: 770

Something that can be gotten around with some clever extra work doesn't mean it's not broken ;) You can actually check the value of the players hp, the penalty bar uses variables allowing you to use different penalty bars for alternating characters or whatever else you might need multiple penalty bars for.

http://www.pywright.com/docs/#penalty has the detailed info on the command, showing that the default variable is penalty. Before subtracting, you could check if the penalty is less than the subtract amount, like so:
Code:
setvar next_threat 50
is penalty < $next_threat?
setvar penalty $next_threat
penalty $next_threat

So if you would run into the bug, it will make sure the health is high enough to pass.

But the penalty bar shouldn't animate going past the 0 point, that's definitely a bug! And fortunately a pretty easy to fix one.
Creator of PyWright, the lovable case construction system!
Also visit the PyWright post.
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

Dracarys!

Gender: Male

Location: In a courtroom, for some reason

Rank: Ace Attorney

Joined: Tue Nov 02, 2010 1:00 pm

Posts: 1224

Hey, just a little bug I ran across.

Normally, when you put "{p60}{next}" at the end of a set of quotations, that will make it so that the script briefly pauses before automatically continuing on. However, I noticed that if {spd} is in effect, it will skip the pause and just jump straight to {next}.

So like this...

Code:
char ??? hide
"{sound}{c089}{delay 1}(I...{p20} I {spd 2}{s 10 10 nowait}didn't want her to die!){p80}{next}"


...it will ignore the {p80}, but when I take out {spd2}, it works just as it should. I'm assuming this isn't how it's supposed to work, so I just thought I'd point it out.
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

The one with many faces

Gender: Male

Rank: Desk Jockey

Joined: Thu Sep 23, 2010 1:33 am

Posts: 146

I can confirm I am getting this bug. Also, I believe if you have both a {spd} and a {delay} tag in dialogue, whatever you have first gets obeyed.

I also need to call attention to your web service. I can NOT download anything from the in-app downloader OR the website. Not even gif2strip is working. I've had to use an alternate method of gif2strip, but yours is the best for py.
Image
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

Seasoned Animator

Gender: Male

Rank: Decisive Witness

Joined: Thu Nov 18, 2010 7:16 pm

Posts: 272

Is there a way for a character to appear during dialogue?
Like the creator of Final Fantasy, I'm better at telling a story.
If you need help animating Ace Attorney sprite sheets, I'm your man.

Phoenix Wright Ace Attorney: Project Justice - Co-developed with Hesseldahl
Case 1 - Nursing the Turnabout: Trial Former, Trial Latter
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

Gender: Male

Rank: Medium-in-training

Joined: Tue Dec 29, 2009 12:08 pm

Posts: 361

I've been doing some experiments with custom GUI and modified court record variables and I encountered a serious bug:

Whenever a game that makes use of customized 'court_record_vars.txt' is saved, after loading it switches back to the default settings. Am I doing something wrong?

Also, I noticed a minor bug with the 'check.png' button (I guess it was ALWAYS there, but I noticed it just recently - it simply became conspicuous because of my custom GUI). In the court record it is aligned properly, but during investigations it goes beyond the screen for about two pixels.

Is there any way to fix those problems?
Image
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

The one with many faces

Gender: Male

Rank: Desk Jockey

Joined: Thu Sep 23, 2010 1:33 am

Posts: 146

I can't reproduce the court_record_vars bug. Try saving that file as court_record_vars.mcro and see if that does something. I can't confirm the second bug. Is anyone able to reproduce the Check bug?
Image
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

Gender: Male

Rank: Medium-in-training

Joined: Wed Aug 24, 2011 2:25 pm

Posts: 343

Darth Wiader wrote:
Whenever a game that makes use of customized 'court_record_vars.txt' is saved, after loading it switches back to the default settings. Am I doing something wrong?


And that

is why the autosave existed
That one guy from AAO that made about a dozen cases that all kinda go off the deep end and fall apart at one point or another.
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

Gender: Male

Rank: Medium-in-training

Joined: Tue Dec 29, 2009 12:08 pm

Posts: 361

E.D.Revolution wrote:
Try saving that file as court_record_vars.mcro and see if that does something.


The macro trick... actually works, at least for now. I should've try it first myself before posting here. Thanks!!!

BTW, here's a mcro file ready to copy and edit:

https://raw.githubusercontent.com/boske ... _vars.mcro

Quote:
I can't confirm the second bug. Is anyone able to reproduce the Check bug?


Take a closer look at the following screen:

Image

(I used here an example from Cardiovore's game, so I had to redact the victim's name, because it would be a spoiler.)

You'll notice that on the 2nd image the 'check' button doesn't have its right border.
And before you ask, the button's size isn't a problem, this bug occurs with any type of 'check' button.
Image


Last edited by Darth Wiader on Sun Oct 26, 2014 7:19 pm, edited 1 time in total.
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

The one with many faces

Gender: Male

Rank: Desk Jockey

Joined: Thu Sep 23, 2010 1:33 am

Posts: 146

The only reason I said I can't confirm is because I didn't make my own investigation scene. I believe you here. I think it may be a misplaced code in one of the core files. (as in core.py or something)

Edit: I was right. There is a misplaced code. I'll have to update the code repository sometime later.
Image
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

Gender: Male

Rank: Medium-in-training

Joined: Tue Dec 29, 2009 12:08 pm

Posts: 361

E.D.Revolution wrote:
I think it may be a misplaced code in one of the core files. (as in core.py or something)


I was afraid of that.
I have some experience with modyfying PyWright's core files (for example, I succeded with inserting my own court record 'present' button that PyWright lacks), but I never really wanted to walk that path.
It would mean that I have to 'distribute' my game along with a modified version of PyWright that probably wouldn't be compatible with any other game or further updates from Saluk... and that's a thing I want to avoid.

I hope Saluk will fix that bug with 'check' button with the next update of PyWright (unless someone here has an idea how to fix it without messing with core files).
Image
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

The one with many faces

Gender: Male

Rank: Desk Jockey

Joined: Thu Sep 23, 2010 1:33 am

Posts: 146

This isn't a big bug, the examine button, that is. Funny you mention messing with core files. I am doing some work on it. I do believe that you can include core files into your game repository. But you will have to give specific instructions when you distribute it. I don't know what kind of modifications you are working on but I have a custom engine that is gonna be the base for v 0.989. And all my modifications will work. Unless you drastically the code beyond asthetics, your custom engine should work for future updates.
Image
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

Gender: Male

Rank: Medium-in-training

Joined: Tue Dec 29, 2009 12:08 pm

Posts: 361

Quote:
This isn't a big bug, the examine button, that is.


I agree but, on the other hand, it doesn't mean it isn't a bug.
And it can be easily fixed in the next update, right?
Just remember about it, guys, while working on v 0.989 ;).

Quote:
Unless you drastically the code beyond asthetics, your custom engine should work for future updates.


Let's take for an example this little button:

Image

I know how to modify the core file to include it, but then all the older games that don't have it in their respective folders won't work properly on my modified PyWright, only mine would do.
But like I said, I abandonned all my work on core modifications and I want to make a game that doesn't need them to work. Hence all the struggle with 'court_record_vars' ;).
Image
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

The one with many faces

Gender: Male

Rank: Desk Jockey

Joined: Thu Sep 23, 2010 1:33 am

Posts: 146

Iirc I believe the latest update includes that button as an option labeled present_2. In fact there should be a new macro included in the core folder to accommodate that.
Image
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

Gender: Male

Rank: Medium-in-training

Joined: Tue Dec 29, 2009 12:08 pm

Posts: 361

Quote:
I believe the latest update includes that button as an option labeled present_2.


By the latest, do you mean 0.9880?
Ok, I'll check it out.

(I worked on that option back in the times of 0.986, If I remember correctly.)

EDIT: I didn't find said macro in my copy of PyWright, but I found something similar here:

https://code.google.com/p/pywright/sour ... re/macros/

I'll give it a try.
Image
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

The one with many faces

Gender: Male

Rank: Desk Jockey

Joined: Thu Sep 23, 2010 1:33 am

Posts: 146

Yup, gui.mcro got updated. So goodbye altering core.py for inserting present_button2. Hello customizing gui.mcro
Image
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

Gender: Male

Rank: Medium-in-training

Joined: Tue Dec 29, 2009 12:08 pm

Posts: 361

On Ace Attorney Online I came across a game in which there was a limited time for answering characters' questions (without any timer). Furthermore, thinking too long and straggling with answering the question was counted as silence and led to different path.

Is it possible to re-create such an effect in PyWright?
Image
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

Dracarys!

Gender: Male

Location: In a courtroom, for some reason

Rank: Ace Attorney

Joined: Tue Nov 02, 2010 1:00 pm

Posts: 1224

You probably could just use timer macros. If you answer, you go to one script and if you don't you go to another.
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

§

Gender: Male

Rank: Suspect

Joined: Mon Sep 10, 2012 3:51 am

Posts: 36

Quick question: Is the PyWright server having issues at the moment?
I've been trying to download via the PyWright's updater since yesterday and it doesn't work, it simply won't load. Characters, bgs, fgs, games... nothing loads. Last week it was working fine, so I was wondering if it's a technical problem from the server. Anyone knows anything about this? I need Franziska's sprites atm. D:
We do what we must because we can.
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

Gender: Male

Rank: Medium-in-training

Joined: Tue Dec 29, 2009 12:08 pm

Posts: 361

Yeah, the updater seems to not work :(.
Try to download 'artpack' folder from this subpage - Franzy should be in it (or try an unofficial mirror).
Image
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

Ace Procrastinator

Gender: Male

Rank: Suspect

Joined: Sun Jun 08, 2014 5:55 am

Posts: 36

Not to beat a dead horse, but may I ask what happened to the AAO converter? I've been searching around and I haven't found a concrete answer yet.
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

The one with many faces

Gender: Male

Rank: Desk Jockey

Joined: Thu Sep 23, 2010 1:33 am

Posts: 146

Saluk has it, but it's not going to help at this point. AAO officially changed to v6 not too long ago, and the converter will have to be rewritten.
Image
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

The one with many faces

Gender: Male

Rank: Desk Jockey

Joined: Thu Sep 23, 2010 1:33 am

Posts: 146

Was it ever possible to store the last selected piece of evidence as a variable? Like if one wanted to make an animation dependent on what the player chose as his evidence?
Image
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

Gender: Male

Rank: Desk Jockey

Joined: Fri Apr 11, 2014 4:23 am

Posts: 104

Is there a way around this error?

Quote:
Undefined:'NoneType' object has no attribute 'scene'
scene:'intro', line '1'


The games I'm making all have this error. How does one surpass it? :udgey:

I do have an intro script made, btw.
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

The one with many faces

Gender: Male

Rank: Desk Jockey

Joined: Thu Sep 23, 2010 1:33 am

Posts: 146

Without seeing the script, I don't know what exactly is the error. What I think it could be is that you probably did not make an actual scene script.

So if you have the command script, you need to make sure you actually have a .txt file in the game folder with the name of the script. For example,
Code:
script scene1

that means you need a scene1.txt OR a scene1.script.txt file in the folder.

Alternatively, you could have forgotten to tell what script for it to go it.
Image
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

Gender: Male

Rank: Desk Jockey

Joined: Fri Apr 11, 2014 4:23 am

Posts: 104

No, it's not that. I have it set to go to scene1 after going through the intro, but when I click the message box that showed the error, it says error opening intro.
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

The one with many faces

Gender: Male

Rank: Desk Jockey

Joined: Thu Sep 23, 2010 1:33 am

Posts: 146

Hmm... How is your game structured at the moment?
Image
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

Gender: Male

Rank: Desk Jockey

Joined: Fri Apr 11, 2014 4:23 am

Posts: 104

Actually, never mind. I figured it out. The reason being, the intro script was named "intro.script". I removed the .script part and it's working fine now. Really odd how it works like that. :eh?:
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

The one with many faces

Gender: Male

Rank: Desk Jockey

Joined: Thu Sep 23, 2010 1:33 am

Posts: 146

Oh, that's a silly error. That's strange, but yeah, intro has to have no extensions.
Image
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title

Gender: None specified

Rank: Suspect

Joined: Fri May 31, 2013 11:09 am

Posts: 47

Ummm... I can't seem to access the pywright website properly... Is there another link to download the latest version? Thanks
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

women are my favorite guy

Gender: Female

Rank: Suspect

Joined: Tue Nov 25, 2014 1:01 am

Posts: 36

mujie wrote:
Ummm... I can't seem to access the pywright website properly... Is there another link to download the latest version? Thanks

My take on the situation is that they are updating the website and is temporarily down. I do not know this for sure, however it seems like the most likely explanation.
Image
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

Gender: Male

Location: Dominican Republic

Rank: Prosecutor

Joined: Sun Jun 02, 2013 6:06 pm

Posts: 715

The site has been down for a while now,but there is a mirror for the Windows version of the latest update.
Signature loading, please wait...
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

The one with many faces

Gender: Male

Rank: Desk Jockey

Joined: Thu Sep 23, 2010 1:33 am

Posts: 146

Unfortunately, it is down, and it doesn't look like it's being updated.

This also means you can't get any other assets, such as games, sprites and music. You're pretty much on your own for those. Especially for converting sprites into sheets.
Image
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

Dracarys!

Gender: Male

Location: In a courtroom, for some reason

Rank: Ace Attorney

Joined: Tue Nov 02, 2010 1:00 pm

Posts: 1224

Somebody can try contacting Saluk. In the meantime, we can put up another download link for the program. All games have links in their respective threads. (and most are actuallymore up to date than Pywright's site is)
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

The one with many faces

Gender: Male

Rank: Desk Jockey

Joined: Thu Sep 23, 2010 1:33 am

Posts: 146

Hey, I just emailed the saluk. He said that his website has been hacked by lots of spammers, so he had to shut it down. He says that it may take up to a week or so for everything to get back together. In the meanwhile he might put up some tools.
Image
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

Winter Flag Trademark

Gender: None specified

Location: Igiyooki Manor, P/A.

Rank: Ace Attorney

Joined: Tue Feb 10, 2015 6:01 am

Posts: 2216

So, any other way to download PyWright? Or do we need to wait till Saluk shows up?
Image


This account is dead. Link to my DeviantART.
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

The one with many faces

Gender: Male

Rank: Desk Jockey

Joined: Thu Sep 23, 2010 1:33 am

Posts: 146

Use that mirror for now.
Image
Re: PyWright Case Engine ver 0.9880! (Finally)Topic%20Title
User avatar

Winter Flag Trademark

Gender: None specified

Location: Igiyooki Manor, P/A.

Rank: Ace Attorney

Joined: Tue Feb 10, 2015 6:01 am

Posts: 2216

Ah, thanks, E.D.! :basil:
Image


This account is dead. Link to my DeviantART.
Page 39 of 42 [ 1674 posts ] 
Go to page Previous  1 ... 36, 37, 38, 39, 40, 41, 42  Next
 
Display posts from previous:  Sort by  

 Board index » Present Evidence » Games

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