Board index » Present Evidence » Games

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


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

You were never supposed to exist.

Gender: Female

Rank: Desk Jockey

Joined: Mon Apr 05, 2010 1:19 pm

Posts: 104

Hey there! I'm a newcomer into this PyWright discussion and I have a few questions after playing around with it and then scrolling aimlessely trying to find help. :payne:

I apologise if this has already been explained but I'm really clueless here...
I've entered this info into my intro:

--------------------------------------------------------------------------------------------
# Memories of a Turnabout
# A Phoenix Wright fancase by Moonshadow

bg black name=black fade

"Mia Fey Ace Attorney"

set _textbox_lines 3
set _textbox_wrap false


Include evidence

addevbadge

Memories of a Turnabout

----------------------------------
Without the dotted lines of course. :yogi:
Is that correct?

Because it keeps coming up with the same message whenever I try to look at 'Memories of a Turnabout' (which is the next script I plan to have) in 'editor'

Traceback (most recent call last):
File "editor.py", line 3, in <module>
File "core\libedit.py", line 722, in <module>
quit = root.handle_events(pygame.event.get())
File "core\gui.py", line 93, in handle_events
self.event("click_down_over",evt.pos)
File "core\gui.py", line 66, in event
done = w.event(name,p2,*args)
File "core\gui.py", line 66, in event
done = w.event(name,p2,*args)
File "core\gui.py", line 72, in event
func(*args)
File "core\gui.py", line 394, in click_down_over
getattr(tob,f)()
AttributeError: 'script_menu' object has no attribute '_Memories_of_a_Turnabout.txt'



So yeah, is confused.

Help to a dumb person is greatly appreciated. :maya:
Why are you...lying to me?
Higurashi Kai English Fandub Manager: http://higukai-fandub.deviantart.com
Image
Re: PyWright Case Engine ver 0.973.Topic%20Title
User avatar

Gender: Male

Rank: Prosecutor

Joined: Thu Mar 06, 2008 8:36 pm

Posts: 770

To linkejj:

I wrote PyWright for my own use long before I had heard the term casemaker. Casemaker is not a good description of PyWright. It is a case engine. A casemaker is something like AAO or Mechabrowsers old one. The problem with the casemaker approach, is you are absolutely limited to everything that is preset by the creator. It can be hard or impossible to do various custom things. With AAO you can go pretty far actually. It's not necesarily intended for enhanced features, but there are ways to do cool things. PyWright offers much more freedom, and when you learn it it can actually be faster to just type all of the stuff you need instead of finding the right thing on a menu. Once we get a better tutorial finished, you might come back and check it out; until then AAO should be much easier to learn. But I don't take offense if you hate PyWright, everyone has their own tastes :)

Tap:

fail=x is an argument to an interface command. In this case, the examine command is the one you want to define it for. You are saying "Show the examine screen, if the player chooses something which is not a defined region, go to the label x" So you want to take out the fail=x line, and put it on the examine:

examine hide fail=myfail


Scent:

Yes, we are working on a tutorial here: http://pywright.dawnsoft.org/wordpress/ ... l-project/ The other one was one that I tried to write until I realized that the format was all wrong and still way to technical. It is still not quite together yet, hopefully it works out!


ChihiroAyasato:

You are off to a decent start. Here is a refined version, with some comments showing the errors:
Spoiler: intro
# Memories of a Turnabout
# A Phoenix Wright fancase by Moonshadow

# Took out the name. Most of the time you don't need to name the objects, only if you need to refer to it later
# If you need to explicitly delete something for instance
bg black fade

"Mia Fey Ace Attorney"

set _textbox_lines 3
set _textbox_wrap false

# Made the include command lowercase.
include evidence

# Need a space between the command and the arguments
addev badge

# I wasn't sure what the next line was supposed to do. I assume it was meant to display some text, so I added quotes.
"Memories of a Turnabout"


Finally, the editor is not supported any longer. It wasn't that helpful, since it didn't even have a list of available commands. There will be bugs and crashes such as you experienced. It's best to use some text editor such as notepad, scite, notepad++, ulipad, or something of that nature. You should already have the game folder in games created though, thanks to the editor. You can still work on the same one you have started.

If you have any further questions, you can ask here or in the help forum: http://pywright.dawnsoft.org/wordpress/ ... eral-help/
Creator of PyWright, the lovable case construction system!
Also visit the PyWright post.
Re: PyWright Case Engine ver 0.973.Topic%20Title

Thank You,Saluk.

But the problem is solved already..I'm using the online one.
Simple,Yet fun.

And about the name.. Well,Its my fault,I had to see that with 'Engine' you meant to play them. :phoenix:
Re: PyWright Case Engine ver 0.973.Topic%20Title
User avatar

Gender: None specified

Rank: Medium-in-training

Joined: Sun Jun 24, 2007 6:19 pm

Posts: 449

More hacks :lana:

Make shake effect decrease over time (add to the beginning of class shake(effect)'s update function):
Code:
        self.offset -= abs(self.offset / self.ttl)
        if self.offset < 1: self.offset = 1

It looks kinda better, at least in my opinion. :yuusaku: I'd also make it pausing the text optional, but I have no clue how to do that. :sadshoe:

Improved court record thingy (goes in art/general):
Image

Cross examine buttons with outline in middle (goes in art/general):
Image

Add grey bars to the bottom screen the cheap way. Cheap because it probably messes up the case menu (goes in art/bg):
Image

And some tricks:
  • Shake and flash only check the first letter of the command, so you can do stuff like {supercheesburger 15 15} {fmylife 15} and they still work. (I doubt this is recommended, though.)
  • If you create an art/general folder in your case, you can replace all the gui graphics you want for just that case/game.
Re: PyWright Case Engine ver 0.973.Topic%20Title
User avatar

Gender: Male

Rank: Prosecutor

Joined: Thu Mar 06, 2008 8:36 pm

Posts: 770

I am glad you found the right tool for the job Guest!


Cool hacks BigFish!

Yeah relying on the one-character hack is not good, as I can't guarantee that the implementation which allows it wont change. It's very likely for {f} or {s} to become macros and then it wont work at all. If I recall correctly, in 2.0 there are no special text macros, all of the text macros are just regular macros which are defined (and can be redefined). Although I haven't looked at that code in a while.

The shake looks better. I think that is something I meant to do but never got around to. Now I don't have to ;) I'm not sure about having a "nowait" version of the shake but if it's not too hard to do I might add it. In which case it would probably be something like {snowait} or just {sc} (shake and continue).

The better art is definitely useful. I will consider including some of these changes in my release. The main background with bars is probably the wrong way to do that; but I'm not positive what the right way would be. There could be a main1 and a main2, where the case selection uses one, and the talk button uses another. Or there could be an overlay of the bars which only displays with the talk buttons.
Creator of PyWright, the lovable case construction system!
Also visit the PyWright post.
Re: PyWright Case Engine ver 0.973.Topic%20Title
User avatar

Gender: None specified

Rank: Medium-in-training

Joined: Sun Jun 24, 2007 6:19 pm

Posts: 449

saluk wrote:
The main background with bars is probably the wrong way to do that; but I'm not positive what the right way would be. There could be a main1 and a main2, where the case selection uses one, and the talk button uses another. Or there could be an overlay of the bars which only displays with the talk buttons.


I just put examinefg.png on top of the main.png background. I was going to do it with code in the uglyarrow class, but felt lazy. :sawit:

Something else I tried to do but couldn't figure out was moving the 'press' and 'present' buttons down to the bottom screen. I tried, with the press button, to do:
Code:
        self.pos = [0,other_screen(0)]

When I tested it, it moved down to the bottom, but didn't accept any input. And when I clicked the area on the top screen where it used to be, the text box would just retype the current statement. Pressing Z worked fine.

If you could shed some light on that, it'd be nice, because it looks pretty goofy having the cross-examine buttons on the complete wrong screen. :P
Re: PyWright Case Engine ver 0.973.Topic%20Title
User avatar

Gender: Male

Rank: Prosecutor

Joined: Thu Mar 06, 2008 8:36 pm

Posts: 770

Agreed. That should be the way to move them, but I think it interferes with the hit region of some of the other things on the second screen. I'll check it out.
Creator of PyWright, the lovable case construction system!
Also visit the PyWright post.
Re: PyWright Case Engine ver 0.973.Topic%20Title
User avatar

You were never supposed to exist.

Gender: Female

Rank: Desk Jockey

Joined: Mon Apr 05, 2010 1:19 pm

Posts: 104

Thanks very much for the help! I've copy and pasted what you've written into my intro.txt, and then also added at the end:

Memories of a Turnabout

Because it's my next script thing. However, whenever I open up Pywright and click on 'new game' for 'Mia Fey - Ace Attorney', it comes up with the same thing saying that I should check someplace with '.log'?

I don't get this?! :meekins:
Why are you...lying to me?
Higurashi Kai English Fandub Manager: http://higukai-fandub.deviantart.com
Image
Re: PyWright Case Engine ver 0.973.Topic%20Title
User avatar

Gender: Male

Rank: Prosecutor

Joined: Thu Mar 06, 2008 8:36 pm

Posts: 770

Which operating system are you on?

That memories of a turnabout thing is wrong. I'm not sure what you are expecting to happen there. The only things allowed on any line of a pywright script file is:

a comment - line starting with #, which isn't processed by the script and doesn't do anything
a textbox - line starting with "
a command - line starting with a valid command, followed by configuration words that give more info about the command

"Memories" is not a command, so it's not going to work - although it shouldn't crash and mention a log file. Anyway, tell me what you are expecting this to do and I'll explain the proper command for that.

If you are on windows you should be able to find a file called "lastlog" or "lastlog.txt" in your pywright folder. If you open that, it can explain why the program crashed. You can post that in here and I'll try and debug it. On mac I think the file is called "logfile". You may have a "lastlog" on mac too, I don't remember.
Creator of PyWright, the lovable case construction system!
Also visit the PyWright post.
Re: PyWright Case Engine ver 0.973.Topic%20Title

Not quite setup certain profile things.

Gender: Male

Rank: Suspect

Joined: Sat Apr 24, 2010 7:05 pm

Posts: 7

I've been trying things on PyWright for a week or two, and i think it's great. Off with the admiring, on with a suggestion:

I have been trying to add a more original/improved look, and for that i was editing/changing some art files. Until now all i have done is to change the court record button's part that is for opening cr with a shrinked original cr button. I tried editing the bg behind the text (you know, the "main" bg), and ripped the AAI main bg. The color didnt go well at the top, so i ripped the logo and put it on the top of it (final product is: 256x384) and put that as main. All i got was the logo as the main bg. So, my suggestion is to add a capability for inputting a logo for the game's front page. And by the way, how to add an image to the game at the game selection screen (just like in AAO game or turnabout substitution?)
Sig pending.
Re: PyWright Case Engine ver 0.973.Topic%20Title
User avatar

Gender: Male

Rank: Prosecutor

Joined: Thu Mar 06, 2008 8:36 pm

Posts: 770

The only time that the "main" is shown on both screens is during the default case selection I believe. You can control some or all of the case selection process with an intro.txt in your game folder. You can for instance change the background there (on the top or the bottom - when a game is loaded it just adds 2 main backgrounds with a bg command). If you have a casemenu at the end, it will launch the regular casemenu.

Also, you can have another script that is run when each case is selected, it should be called "case_screen.txt" and placed in each case folder. This is how Justices Memoirs has a different background for each case.

The main image should just be 256x192, it's only used by the engine as default case select background (where it is doubled), and the background of the continue button area. (That's why you were only seeing the top of the image before).

So yes, lucky for you, all of your suggestions already exist :)

Some of the default setup is still tied to when PyWright was single screen only. As an aside, I still prefer to play single screen only when I can, although a few of the games don't work so well under this mode :(
Creator of PyWright, the lovable case construction system!
Also visit the PyWright post.
Re: PyWright Case Engine ver 0.973.Topic%20Title

Not quite setup certain profile things.

Gender: Male

Rank: Suspect

Joined: Sat Apr 24, 2010 7:05 pm

Posts: 7

saluk wrote:
The main image should just be 256x192, it's only used by the engine as default case select background (where it is doubled), and the background of the continue button area. (That's why you were only seeing the top of the image before).(

I thought it would give me the other part... all my assumptions on the way PyWright are working are false it seems :)
saluk wrote:
Also, you can have another script that is run when each case is selected, it should be called "case_screen.txt" and placed in each case folder. This is how Justices Memoirs has a different background for each case.

I would like to thank you for giving me the name of Justices Memoirs. Until now, i thought it was one of the announced-yet-not-released games, however it turned out to be the best example of PyWright coding, making it much easier for me to learn and fix my tries.
Sig pending.
Re: PyWright Case Engine ver 0.973.Topic%20Title
User avatar

Gender: Male

Location: Melbourne, Australia

Rank: Ace Attorney

Joined: Thu Oct 08, 2009 10:56 am

Posts: 1371

HakairyuvK wrote:
I would like to thank you for giving me the name of Justices Memoirs. Until now, i thought it was one of the announced-yet-not-released games, however it turned out to be the best example of PyWright coding, making it much easier for me to learn and fix my tries.


Ah, thanks but my coding was based on Turnabout Scapegoat. I also didn't use the court macros. I recommend checking out Checkmate and Turnabout if you want to learn how to use them. :phoenix:
Image
Re: PyWright Case Engine ver 0.973.Topic%20Title

Not quite setup certain profile things.

Gender: Male

Rank: Suspect

Joined: Sat Apr 24, 2010 7:05 pm

Posts: 7

Tap wrote:
Ah, thanks but my coding was based on Turnabout Scapegoat. I also didn't use the court macros. I recommend checking out Checkmate and Turnabout if you want to learn how to use them. :phoenix:

I checked Turnabout Scapegoat, and it will probably help me a lot with magatama, however it is old. And what is that "editor" program inside?
Sig pending.
Re: PyWright Case Engine ver 0.973.Topic%20Title
User avatar

Gender: Male

Rank: Suspect

Joined: Fri Apr 23, 2010 8:06 pm

Posts: 49

Tbh, when I first tried out Pywright, I thought it was hard (because of the scripting...)

But when I read/download the tutorials (I took notes from the beta 10 series), I finally gotten the hang of it! :gant:
Re: PyWright Case Engine ver 0.973.Topic%20Title
User avatar

Gender: Male

Rank: Prosecutor

Joined: Thu Mar 06, 2008 8:36 pm

Posts: 770

Glad you figured it out DannyBoy23. Someday I really hope for a good set of tutorials on learning it, but I don't know when that will be.

HakairyuvK - I used to be working on an editor, but just as with the tutorials, anything beyond engine hacking seems to be too much for me to carry through, with all the other stuff i got going on.


I am working hard on the next release guys. Not a ton of new features, but there are quite a few small enhancements and bug fixes. Some highlights:
autosave/multiple saves
able to rename court record tabs, and have fewer or more tabs (unlimited amount) If you don't want profiles, just delete the tab
more work on downloads (one of these days it will work for everyone)
can use an image of your choosing as the examine cursor (paves the way for traditional adventure use item on item!)
code that resets some of the control variables when the script changes - should limit the damage of forgetting to clean up certain "back button" related variables

I wish I had more time to put into this but just wanted to reiterate that I'm still around :)
Creator of PyWright, the lovable case construction system!
Also visit the PyWright post.
Re: PyWright Case Engine ver 0.974Topic%20Title
User avatar

Gender: Male

Rank: Prosecutor

Joined: Thu Mar 06, 2008 8:36 pm

Posts: 770

OK, 0.974 is out. Many minor changes, a few small but far reaching changes.

The expression engine isn't quite up to the level of AAO yet (no functions), but it is pretty close. It's close enough that i can easily convert from aao expressions to pywright expressions. I'll be adding macro (function) support to them in a later version.

Something I have seen here and there is that the screen size selection is annoying, well now you can just drag the window to size it however you like.

No one asked for this, but since I use computers all day sometimes I get tired of using a mouse. So I've started to do gamepad support! It probably only works right with my gamepad, but you can try it. It should automatically work if you have a gamepad plugged in. d-pad for directional stuff, face buttons for enter and back, and shoulder buttons to replace z/x hotkeys.

More in the changelog. Get the update from pywright downloads or here: http://pywright.dawnsoft.org/updates3/engine/0.974.zip
Creator of PyWright, the lovable case construction system!
Also visit the PyWright post.
Re: PyWright Case Engine ver 0.974Topic%20Title
User avatar

Gender: Male

Location: Melbourne, Australia

Rank: Ace Attorney

Joined: Thu Oct 08, 2009 10:56 am

Posts: 1371

I love the new update, especially since you've included an expressions engine. :edgy:

My only problem with stretching the screen is that it stays in the stretched resolution even after you quit Pywright and reboot it. Luckily I knew how to fix the resolution. :)

Btw, does your uploader (the one you showed us on Ace Fancase) work now? You said that it didn't back in March but I'm not sure if you fixed it or not. If it's fixed, could you PM or post the dev key on Ace Fancase? Thanks. :)
Image
Re: PyWright Case Engine ver 0.974Topic%20Title
User avatar

What am I Prosecuting fooooooor!?

Gender: Male

Rank: Medium-in-training

Joined: Wed Mar 07, 2007 7:03 pm

Posts: 467

Ha! I'm PyWright with my Xbox 360 controller! Nice, Saluk! :godot:
Re: PyWright Case Engine ver 0.974Topic%20Title
User avatar

Previously Cardiovore

Gender: Male

Location: England

Rank: Prosecutor

Joined: Wed Jul 01, 2009 4:47 pm

Posts: 935

Hey saluk. :garyuu:
Is there a way to make certain sprites play continuously instead of them having "blink pauses"?
I'm using PNGs by the way.
Phoenix Wright: The Contempt of Court
FULL GAME AVAILABLE
Re: PyWright Case Engine ver 0.974Topic%20Title
User avatar

Gender: Male

Rank: Prosecutor

Joined: Thu Mar 06, 2008 8:36 pm

Posts: 770

I just added this to 0.974. Just do "char bill noauto" and it will not use any lipsyncing or blink frames. Probably won't work with a court macro. If you are using court macros, you can set the characters emotion to some dummy emotion with "emo blank name=wc" or whichever character, "char bill noauto stack name=bill_continuous", then when the line of dialog is finished "delete name=bill_continuous" "emo normal name=wc".
Creator of PyWright, the lovable case construction system!
Also visit the PyWright post.
Re: PyWright Case Engine ver 0.974Topic%20Title
User avatar

Previously Cardiovore

Gender: Male

Location: England

Rank: Prosecutor

Joined: Wed Jul 01, 2009 4:47 pm

Posts: 935

saluk wrote:
I just added this to 0.974. Just do "char bill noauto" and it will not use any lipsyncing or blink frames. Probably won't work with a court macro. If you are using court macros, you can set the characters emotion to some dummy emotion with "emo blank name=wc" or whichever character, "char bill noauto stack name=bill_continuous", then when the line of dialog is finished "delete name=bill_continuous" "emo normal name=wc".

Ah that's great, because I'm not using court macros.
Thanks saluk! :edgy:
Phoenix Wright: The Contempt of Court
FULL GAME AVAILABLE
Re: PyWright Case Engine ver 0.973.Topic%20Title
User avatar

You were never supposed to exist.

Gender: Female

Rank: Desk Jockey

Joined: Mon Apr 05, 2010 1:19 pm

Posts: 104

saluk wrote:
Which operating system are you on?

That memories of a turnabout thing is wrong. I'm not sure what you are expecting to happen there. The only things allowed on any line of a pywright script file is:

a comment - line starting with #, which isn't processed by the script and doesn't do anything
a textbox - line starting with "
a command - line starting with a valid command, followed by configuration words that give more info about the command

"Memories" is not a command, so it's not going to work - although it shouldn't crash and mention a log file. Anyway, tell me what you are expecting this to do and I'll explain the proper command for that.

If you are on windows you should be able to find a file called "lastlog" or "lastlog.txt" in your pywright folder. If you open that, it can explain why the program crashed. You can post that in here and I'll try and debug it. On mac I think the file is called "logfile". You may have a "lastlog" on mac too, I don't remember.


Sorry for not replying for such a long time, I've been busy with school. :bellboy:

The operating system? Umm, it says, PyWright_beta10.91. Is that it? :eh?:

Well, the "Memories of a Turnabout" thing is the title. So do I use the textbox layout? :lana:

I did a whole search of the folders and I cannot find the "lastlog.txt", and I have Windows Vista

Maybe I should just wait until the tutorial is out. :sadshoe:
Why are you...lying to me?
Higurashi Kai English Fandub Manager: http://higukai-fandub.deviantart.com
Image
Re: PyWright Case Engine ver 0.974Topic%20Title
User avatar

Gender: Male

Rank: Prosecutor

Joined: Thu Mar 06, 2008 8:36 pm

Posts: 770

That oooold version of PyWright doesn't make a log file. You should probably download a newer version (http://pywright.dawnsoft.org/wordpress/?page_id=44).

Anyway, if you want a textbox to show text, you have to include quotes:

"Memories of a Turnabout"

In your original script, you did not have quotes, so PyWright thought you were trying to execute a command. There is no command called Memories, so it crashed.

You mentioned going to another script, if you want to do that, use the script command:

Code:
....other stuff...
script memories.txt


Then you can put more commands in games/yourgame/yourcase/memories.txt and it will continue from there.

If you want, you can send me a pm with maybe some of the basic stuff you want to happen, and I can help get you started on the right path to writing scripts. It will be faster than waiting :)
Creator of PyWright, the lovable case construction system!
Also visit the PyWright post.
Re: PyWright Case Engine ver 0.974Topic%20Title
User avatar

Overworked Sprite Artist

Gender: Male

Location: Exactly where you least expect me to be

Rank: Decisive Witness

Joined: Sun May 30, 2010 10:52 am

Posts: 287

So, um... I'm kind of new to this kind of scripting, and I need some help. I suppose I should explain the situation.

First, the music was all saved as .ogg files. However, since I don't have the required program to run .ogg files, I changed them to .mp3 files, and they ran fine when I tried them out. But here's the problem: When I'm actually playing the case, the music won't play :payne:

If you're interested, here's what I put in scene1.txt:

Quote:
bg lobby
mus lobbytheme.mp3

nt=Dypo
"I'm a defense attorney,{n}fresh out of law school." #Original, right?
"I have recently been asked {n}to defend someone."
"The charge... is murder."

nt=Jaycee
"What are you doing, Dypo?"


As you might see, the sound isn't the only problem. I have no clue how to get the nametags right. I'm a n00b, right?
Image Image


Last edited by Dypo on Fri Jul 23, 2010 6:48 am, edited 1 time in total.
Re: PyWright Case Engine ver 0.974Topic%20Title

Two more games coming up soon

Gender: Male

Location: Paris

Rank: Prosecutor

Joined: Thu Feb 28, 2008 2:45 pm

Posts: 929

PyWright sometimes won't play .mp3 files. .ogg, on the other hand, always works.

As for your nametag issues, if you want the nametag to be "Dypo" without Dypo appearing on screen, the correct line would be:

Code:
char Dypo hide


Hope this helps ;)
Creator of Apollo Justice Case 5: Turnabout Substitution: Trailer - Download
Co-creator of New Year's Turnabout, Turnabout Revolution, and At Dawn's Break
Re: PyWright Case Engine ver 0.974Topic%20Title
User avatar

Overworked Sprite Artist

Gender: Male

Location: Exactly where you least expect me to be

Rank: Decisive Witness

Joined: Sun May 30, 2010 10:52 am

Posts: 287

Ah, so that's how it's done. But what about the .ogg files? What kind of program would I need to play them?

EDIT: I ran into some problems again. How do I make the sprites appear?
I figured it out.

EDIT II: I found a program... but the game won't play the music. :sad-maya:

((OOC: Ping', I've played Turnabout Substitution, and that's why I felt inspired to make my own. You delivered quite a good game!))
Image Image
Re: PyWright Case Engine ver 0.974Topic%20Title

Two more games coming up soon

Gender: Male

Location: Paris

Rank: Prosecutor

Joined: Thu Feb 28, 2008 2:45 pm

Posts: 929

I'm flattered, thanks! ^^

About your problem, make sure you insert the music like this:
Code:
mus nameofthefile.ogg #As in, the exact name of the file in the music folder.

Creator of Apollo Justice Case 5: Turnabout Substitution: Trailer - Download
Co-creator of New Year's Turnabout, Turnabout Revolution, and At Dawn's Break
Re: PyWright Case Engine ver 0.974Topic%20Title
User avatar

Overworked Sprite Artist

Gender: Male

Location: Exactly where you least expect me to be

Rank: Decisive Witness

Joined: Sun May 30, 2010 10:52 am

Posts: 287

B-But, that's exactly what I did...
...
! Maybe it's just my slow-as-hell computer. *sigh*

EDIT: Another question; how do you change the font's color? I know that red is {c900} {c900} but I can't figure out the others.

I'm sorry for being such a n00b...
Image Image
Re: PyWright Case Engine ver 0.974Topic%20Title
User avatar

Gender: Male

Rank: Prosecutor

Joined: Thu Mar 06, 2008 8:36 pm

Posts: 770

The font colors are 3 digits making up red, green, and blue. The number 0 will mean none of that color, 9 will mean full that color. So 000 is black (no color at all), 999 is white (all of the colors), 900 is red, 090 is green, 009 is blue. You can use my handy color picker: http://pywright.dawnsoft.org/htmlcolor/ to pick colors other than those I listed.

If you use 6 digits, you can use html style colors:
"{c1ab898}This text will be teal"

Yeah, "char Dypo hide" is the prefered method for having an offscreen talking character. You can also rename characters by putting "nametag=dodo" on a char line:

#We are going to reuse the phoenix sprite as a different character
char phoenix nametag=Dypo

I'm not sure why the music is playing. Are you sure it is an actual .ogg file and not an .mp3 file that just happens to be named .ogg?
Creator of PyWright, the lovable case construction system!
Also visit the PyWright post.
Re: PyWright Case Engine ver 0.974Topic%20Title
User avatar

Overworked Sprite Artist

Gender: Male

Location: Exactly where you least expect me to be

Rank: Decisive Witness

Joined: Sun May 30, 2010 10:52 am

Posts: 287

Yeah, I am. I changed it to .mp3 after I found out it wouldn't play. I changed it back when Ping' told me to use .ogg files, though. And they still won't play... :payne:
Image Image
Re: PyWright Case Engine ver 0.974Topic%20Title
User avatar

Previously Cardiovore

Gender: Male

Location: England

Rank: Prosecutor

Joined: Wed Jul 01, 2009 4:47 pm

Posts: 935

Howdy saluk :jake:

Just wanted to ask something about 0.974. Has the coding changed for disabling the save/load buttons on the interface?
And is there a way to turn off autosave?
Phoenix Wright: The Contempt of Court
FULL GAME AVAILABLE
Re: PyWright Case Engine ver 0.974Topic%20Title

Two more games coming up soon

Gender: Male

Location: Paris

Rank: Prosecutor

Joined: Thu Feb 28, 2008 2:45 pm

Posts: 929

Actually, I recently asked him that very question. Said he'd make it so setting the save variables false would also turn autosaves off. It's not implemented yet, though, I think.
Creator of Apollo Justice Case 5: Turnabout Substitution: Trailer - Download
Co-creator of New Year's Turnabout, Turnabout Revolution, and At Dawn's Break
Re: PyWright Case Engine ver 0.974Topic%20Title
User avatar

Previously Cardiovore

Gender: Male

Location: England

Rank: Prosecutor

Joined: Wed Jul 01, 2009 4:47 pm

Posts: 935

Ping' wrote:
Actually, I recently asked him that very question. Said he'd make it so setting the save variables false would also turn autosaves off. It's not implemented yet, though, I think.

Ah. Because I use the actual Court Record button, and keep hitting the (hidden) load button.
Phoenix Wright: The Contempt of Court
FULL GAME AVAILABLE
Re: PyWright Case Engine ver 0.974Topic%20Title
User avatar

Gender: Male

Rank: Prosecutor

Joined: Thu Mar 06, 2008 8:36 pm

Posts: 770

I can make that more customizable as well. Make sure you have some way to save though!

Dypo - can you post the exact script command you are using to play the file, the path to the file in your pywright directory, and the file itself so I can debug?
Creator of PyWright, the lovable case construction system!
Also visit the PyWright post.
Re: PyWright Case Engine ver 0.974Topic%20Title
User avatar

Previously Cardiovore

Gender: Male

Location: England

Rank: Prosecutor

Joined: Wed Jul 01, 2009 4:47 pm

Posts: 935

saluk wrote:
I can make that more customizable as well. Make sure you have some way to save though!

Dypo - can you post the exact script command you are using to play the file, the path to the file in your pywright directory, and the file itself so I can debug?

Yeah, the F5 button :)
Phoenix Wright: The Contempt of Court
FULL GAME AVAILABLE
Re: PyWright Case Engine ver 0.974Topic%20Title
User avatar

Overworked Sprite Artist

Gender: Male

Location: Exactly where you least expect me to be

Rank: Decisive Witness

Joined: Sun May 30, 2010 10:52 am

Posts: 287

Okay, I'll just C/P it (the script) here. Oh, and the music file is the lobby theme from Apollo Justice. It's the one you can download with the PyWright Updater.

Quote:
bg courtlobby
mus lobbytheme.ogg

"{c090}July 23, 9:43 AM{n}District Court{n}Defendant Lobby{c090}"

char Dypo hide
"{c009}(Well, this is it. My first trial.{n}... Am I really up to this?){c009}"

char Jaycee e=normal
"Of course you are. Don't worry{n} about it, Dypo."

char Dypo hide
"You're ri- Wait a minute.{n}{c009}(How the hell did she know what I{n} was thinking?!){c009}"
"{c009}(Can she read minds?! Nah, can't{n} be. Maybe she's reading the{n} movements of my lips?){c009}

char Jaycee e=mad
"Of course not. You didn't even move them."

char Dypo hide
"Okay, Jaycee, out with it. What's{n} the trick behind this?"

char Jaycee e=cheerful
"Female intuition. {n}*wink*"

char Dypo hide
"What the- I'm not buying that.{n} C'mon, you can tell me-

char Hobo e=nice
"Looks like you guys are having fun{n} alright. But take it from me, Dypo:{n} You won't find out that trick.{e laughs}"

char Dypo hide
"Thanks... Very reassuring, Mr.{n} Wright.

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

Previously Cardiovore

Gender: Male

Location: England

Rank: Prosecutor

Joined: Wed Jul 01, 2009 4:47 pm

Posts: 935

A problem has come up while testing my game out...

PyWright crashes when I click my second "big button". I'm guessing it has something to do with the "set _bigbutton_high_img" command?
The script is fine, so this is the only conclusion I can come to.
Phoenix Wright: The Contempt of Court
FULL GAME AVAILABLE
Re: PyWright Case Engine ver 0.974Topic%20Title
User avatar

A super dood

Gender: Male

Rank: Suspect

Joined: Thu Jul 29, 2010 1:23 am

Posts: 4

So I've been using this for a while and I've gotten pretty used to the scripting but one thing I can't seem to understand is, Examining. The whole region thing confuses me I get up to about
label top
bg background
examine
label
and then I'm lost can someone help me with this?
Re: PyWright Case Engine ver 0.974Topic%20Title
User avatar

Gender: Male

Rank: Prosecutor

Joined: Thu Mar 06, 2008 8:36 pm

Posts: 770

Dypo I sent you a pm. Your script played the music for me.

Cardiovore, can you point me to the script that exhibits the crash? And/or post your lastlog.txt from when it crashed? And poo, looks like you beat me to the next version, so you'll have complaints about the saving :P

Mr paco, you should have examine, followed by regions that define a rectangle on the screen that can be examined, and then labels for each region after that. Regions are: the x value, and y value of the top left pixel of the rectangle; the width and height of the rectangle; and the label to jump to when that region is clicked.

Code:
label start_examine
bg some_background
examine
region 0 0 100 100 flowers
region 150 200 10 10 security card
label flowers
"It's just a small flower patch."
goto start_examine
label security_card
"Hmm, a security card"
"I'll take that..."
addev security_card
goto start_examine

So the region statements define where the objects are to be clicked. The flower patch takes up a 100 by 100 square, starting in the upper left corner of the screen. The security card is a small 10x10 region starting at (150,200). The easiest way to define these regions is to open up the background in gimp, and use the rectangle tool. When you select a rectangle for some region you want to be clicked, gimp will give you those 4 numbers, and you just copy them into the script as above. Other drawing tools work well for this too.
Creator of PyWright, the lovable case construction system!
Also visit the PyWright post.
Page 30 of 42 [ 1674 posts ] 
Go to page Previous  1 ... 27, 28, 29, 30, 31, 32, 33 ... 42  Next
 
Display posts from previous:  Sort by  

 Board index » Present Evidence » Games

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