Board index » Present Evidence » Games

Page 43 of 131[ 5218 posts ]
Go to page Previous  1 ... 40, 41, 42, 43, 44, 45, 46 ... 131  Next
 


Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title

Gender: None specified

Rank: Suspect

Joined: Thu Aug 23, 2007 7:09 pm

Posts: 6

lukegb wrote:
@musicman2059:

Have you actually written a script for AIGE or did you just download it and run it? It's not a pretty graphical case maker (yet, anyway). It _IS_ a fully functioning case maker with many graphics and many characters included.

See Lee Ji Hoon's fangame Trials of Life for an example.

In short: show us your "game.hlsl". If you have no game.hlsl, you need to write one.


NOTE: MANY advancements have been made since PWLib in a Nutshell first came out, but it is still a valid basis to begin writing your own fangame.


I've tried this with two different game scripts: (And before anyone asks, yes, I do change startup to point to the correct file:

game.hlsl
Code:
#include(pwlib/pwlib.hlsl)
[game]
runscript("pw_initpwlib");
runscript("pw_initpwbgs");
runscript("pw_createphoenix");
changetitle("lol test");
jumptoscript("run");

[run]
runscript("pw_showmain");
waitresponse();
runscript("pw_hidemain");
jumptoscript("casestart");

[casestart]
runscript("pw_showattorneystand");
placefadescreenex(32,"O",0,0,0,256);
runscript("pw_showadvarrowmenu");
runscript("pw_initspeedlines");
jumptoscript("test1");

[test1]
runscript("setlipsynctochar");
runscript("showpwchar");
runscript("pw_showmessagebox");
runscript("pw_setnameboxtophoenix");

runscript("pw_enablephoenixnormal");
message("Hi there.");
message("Testing the portraits.");

runscript("pw_enablephoenixmistake");
message("Hi there.");
message("Testing the portraits.");

runscript("pw_hidemessagebox");
runscript("pw_enablephoenixnegate");
runscript("pw_showmessagebox");
message("Hi there.");
message("Testing the portraits.");

runscript("pw_hidemessagebox");
runscript("pw_enablephoenixconfirm");
runscript("pw_showmessagebox");
message("Hi there.");
message("Testing the portraits.");

runscript("pw_enablephoenixinlove");
message("*drool*");
runscript("setlipsynctochar");

runscript("pw_enablephoenixcertain");
message("Hi there.");
message("Testing the portraits.");

runscript("pw_enablephoenixcoffee2");
message("..............");
runscript("pw_enablephoenixcoffee");
message("..............");
runscript("pw_showjudgetable");
runscript("pw_enablephoenixdark");
message("..............");
message("Dude, someone turn on the lights.");

runscript("pw_showattorneystand");

runscript("setlipsynctochar");
runscript("pw_enablephoenixsweating");
message("Hi there.");
message("Testing the portraits.");

runscript("pw_enablephoenixbird");
message("..............");

runscript("setlipsynctochar");
runscript("pw_enablephoenixevidence");
message("Hi there.");
message("Testing the portraits.");

runscript("pw_hidemessagebox");
runscript("pw_enablephoenixsurprised");
runscript("pw_showmessagebox");
message("HOLY CRAP!");

runscript("setlipsynctochar");
runscript("pw_enablephoenixthinking");
message("Hi there.");
message("Testing the portraits.");

runscript("pw_hidemessagebox");
runscript("pw_enablephoenixtoupee");
runscript("pw_showmessagebox");
message("..............");

runscript("pw_hidemessagebox");
runscript("pw_enablephoenixdeskslam");
runscript("pw_showmessagebox");
message("Hi there.");
message("Testing the portraits.");

runscript("pw_enablephoenixpointdowntalk");
message("Hi there.");
message("Testing the portraits.");
runscript("pw_enablephoenixpointdownshout");
message("HI THERE!");
message("TESTING THE PORTRAITS!");

runscript("pw_enablephoenixpointuptalk");
message("Hi there.");
message("Testing the portraits.");
runscript("pw_enablephoenixpointupshout");
message("HI THERE!");
message("TESTING THE PORTRAITS!");

runscript("pw_enablephoenixfailed");
message("Dammit.");
message("Total failure.");

runscript("setlipsynctochar");
runscript("pw_enablephoenixdrink");
message("Hi there.");
message("Testing the portraits.");

runscript("pw_enablephoenixdrinking");
message("*gulp*");

runscript("pw_enablephoenixobjectiondown");
message("Objection!");

runscript("pw_enablephoenixobjectionup");
message("Objection!");

runscript("pw_enablephoenixsuperobjection");
message("SUPER OBJECTION!");

runscript("pw_enablephoenixmiasuperobjection");
message("SUPER OBJECTION!");

runscript("setlipsynctochar");
runscript("pw_showjudgetable");
runscript("pw_showspeedlines");
runscript("pw_enablephoenixzoom");
message("Hi there.");
message("Testing the portraits.");

runscript("pw_showattorneystand");
runscript("pw_enablephoenixnormal");
message("Done.");


tutogame.hlsl (when startup is pointing to this instead.)
Code:
#include(pwlib/pwlib.hlsl)

[game]
runscript("pw_initpwlib");
runscript("pw_initpwbgs");
runscript("pw_createema");
changetitle("PWLib Tutorial Game");
jumptoscript("run");

[run]
runscript("showpwchar");
runscript("pw_showmessagebox");
runscript("pw_usepwbgcourthall");
runscript("pw_setnameboxtoema");
runscript("setlipsynctochar");
runscript("pw_enableemanormal");
runscript("pw_showadvarrowmenu");
message("Yes!");
message("My name is Ema Skye!");


I'd post my full log if it wasn't so long.

Last edited by musicman2059 on Thu Aug 14, 2008 3:35 pm, edited 2 times in total.
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title
User avatar

AIGE/PWLib Casemaker Developer

Gender: Male

Location: Brazil

Rank: Ace Attorney

Joined: Sun Mar 09, 2008 3:38 am

Posts: 2731

One of the old marks on AIGE (that I tend to forget to remove) is it trying to load Console.png as texture id 10. It is the base texture of the AIGE Console (that is not used on PWLib due to small screen). It is similar to the ~ key console on Quake for example.

I'll fix it if don't forget to.

------
It seems it is that issue with crappy Intel video cards. I need to discover the reason for that.
PWLib 1.2 Under Development

PWLib Casemaker (Version 1.1) at http://forums.court-records.net/viewtopic.php?f=36&t=8788
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title

Gender: None specified

Rank: Suspect

Joined: Thu Aug 23, 2007 7:09 pm

Posts: 6

Also, screenshots of what I'm getting:

Game:

Image

Tutogame:

Image

I've had this problem since the start. At first I thought this was a pow2 thing but my log isn't showing any indication of rendering as pow2.
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title
User avatar

AIGE/PWLib Casemaker Developer

Gender: Male

Location: Brazil

Rank: Ace Attorney

Joined: Sun Mar 09, 2008 3:38 am

Posts: 2731

It is an issue with intel video cards. I still haven't discovered what feature I use that causes this issue on those video cards. I myself do not have access to one of those, so I can't test it in realtime.

Going to test the new Key Manager for AIGE.
PWLib 1.2 Under Development

PWLib Casemaker (Version 1.1) at http://forums.court-records.net/viewtopic.php?f=36&t=8788
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title
User avatar

TIME FOR SCIENTIFIC... illustration?

Gender: None specified

Rank: Desk Jockey

Joined: Tue Jul 01, 2008 8:49 pm

Posts: 85

Pronoun wrote:
Right, people. Can any of you tell me about a gif animator program that'll let me open an animated gif to see how the frames are ordered?
Hotti is being rather difficult. Scratching himself and talking faster than the eye can see.

I'm Kartoffelov, by the way. Forgot my password on this forum and can't seem to get it back.

Valant has been reorganised and will be uploaded along with Hotti once he's done.
Then, if nobody minds, I'll have a go at finishing Trucy, seeing as how she's incomplete.


I open up the gif in quicktime, then just hit the arrow buttons to advance a frame at a time. It's really the only reason I was able to animate the chains & locks (along with a lot of stamina and perseverence). ~_~

Edit: And on the next page, I do some of the work for you! :D Check my post for a list showing the order of Hotti's frames. Whee~

musicman2059 wrote:
Also, screenshots of what I'm getting:

Game:

Image

Tutogame:

Image

I've had this problem since the start. At first I thought this was a pow2 thing but my log isn't showing any indication of rendering as pow2.


Awww, your graphics card doesn't support AIGE. D: I have the same problem. It is, as of yet, an unresolved (and slightly depressing) issue. It's also the reason I worked to create a font for names, so that you can at least know who is talking (even if you can't see him/her). Somewhere in this thread I think there is short list of graphics cards that havce been proven to work or not work.

Edit: beat to the punch!
Image

Hershel Layton: Ace Professor currently in Pre-Production!
Also, I make sprites.


Last edited by jeti on Thu Aug 14, 2008 4:37 pm, edited 1 time in total.
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title
User avatar

Luke: Layton's #1 Apprentice

Gender: Male

Location: United Kingdom

Rank: Bug Sweeper

Joined: Fri May 30, 2008 4:19 pm

Posts: 365

Jeti: Can I have the rest of lock/unlock anims please... PWETTY PWEASEY?

Thanks.
Web developer by night, school student by day. That's how I roll.
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title
User avatar

TIME FOR SCIENTIFIC... illustration?

Gender: None specified

Rank: Desk Jockey

Joined: Tue Jul 01, 2008 8:49 pm

Posts: 85

lukegb wrote:
Jeti: Can I have the rest of lock/unlock anims please... PWETTY PWEASEY?

Thanks.


Oh yeah, sorry. n_n; I wasn't feeling so great the last couple of days and decided to work on some of my own projects to cheer myself up. :3 I'll get right back on that. Did the unbreaking animations I sent you last sync up correctly? It's veryvery hard for me to gauge whether or not they fit. x:

ALSO:

I went ahead and mapped out the proper frame sequence for the most complicated of Hotti's animations because Hotti ROCKS. Take that as you will.

Spoiler: long list of Hotti frames
Hotti-normal(a), 24 different frames:

The assumption here is that in all of these frames his mouth is in its "closed" position (which for Hotti is that terrifying toothy grin). The first word identifies the placement of his itching hand, the directional indicator is at what point the hand is. For instance, "shirt left" is when he's itching inside his shirt at the leftmost position, "shirt right" is when he's itching inside his shirt at the rightmost position, &c. "Hold" shows how many "frames" the image should be held for (which nothing listed, it is assumed that it's "one for one" timing). On CR the last frame of this animation is held for what I think is 6 "beats", whether or not this is necessary is up to you.

01 shirt left
02 shirt right
03 " " left
04 " " right
05 " " left
06 " " right (hold 3)
07 head up
08 head down
09 " " up
10 " " down
11 " " up
12 " " down (hold 3)
13 shoulder up
14 shoulder down
15 " " up
16 " " down
17 " " up
18 " " down (hold 3)
19 head up
20 head down
21 " " up
22 " " down
23 " " up
24 " " down (hold 6?)

Hotti-normal(b), 32 different frames:

The same pattern is held for his itching, but now his mouth comes into play. :3 "Closed" is the mouth's closed position, "Open" is when there is a gap between his upper and lower teeth (as in, his mouth is open) and "O" is Hotti's representation of the "O" or "U" phoneme. Self-explanatory? I hope so.

01 shirt left + closed
02 shirt right + closed
03 " " left + open
04 " " right + open
05 " " left + o
06 " " right + o
07 " " right + open
08 " " right + closed
09 head up + open
10 head down + open
11 " " up + o
12 " " down + o
13 " " up + open
14 " " down + open
15 " " down + closed
16 " " down + open
17 shoulder up + o
18 shoulder down + o
19 " " up + open
20 " " down + open
21 " " up + closed
22 " " down + closed
23 " " down + open
24 " " down + o
25 head up + open
26 head down + open
27 " " up + closed
28 " " down + closed
29 " " up + open
30 " " down + open
31 " " down + o
32 " " down + open


And there we go. :3
Image

Hershel Layton: Ace Professor currently in Pre-Production!
Also, I make sprites.
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title
User avatar

TIME FOR SCIENTIFIC... illustration?

Gender: None specified

Rank: Desk Jockey

Joined: Tue Jul 01, 2008 8:49 pm

Posts: 85

UMMMMMMM OOPS IGNORE THIS
Image

Hershel Layton: Ace Professor currently in Pre-Production!
Also, I make sprites.


Last edited by jeti on Thu Aug 14, 2008 4:36 pm, edited 1 time in total.
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title
User avatar

Luke: Layton's #1 Apprentice

Gender: Male

Location: United Kingdom

Rank: Bug Sweeper

Joined: Fri May 30, 2008 4:19 pm

Posts: 365

Spoiler: Quote FoH (force of habit)
jeti wrote:
lukegb wrote:
Jeti: Can I have the rest of lock/unlock anims please... PWETTY PWEASEY?

Thanks.


Oh yeah, sorry. n_n; I wasn't feeling so great the last couple of days and decided to work on some of my own projects to cheer myself up. :3 I'll get right back on that. Did the unbreaking animations I sent you last sync up correctly? It's veryvery hard for me to gauge whether or not they fit. x:


The unbreak anims did sync correctly.
Web developer by night, school student by day. That's how I roll.
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title
User avatar

AIGE/PWLib Casemaker Developer

Gender: Male

Location: Brazil

Rank: Ace Attorney

Joined: Sun Mar 09, 2008 3:38 am

Posts: 2731

-Added Key Manager to AIGE. It will allow you to assign AHLSL commands to most of the keys on the keyboard. With this I can now make button-guided interface interaction in PWLib.

:pearl:

The new intended commands for Key Management

- definekeyex("KEY","state",<command()>);
- defineextrakey("KEY","EXTRAKEY");
- bindkey("KEY","state",<command()>);
- rebindkey("KEY","state",<command()>);
- undefinekey("KEY","state");
- unbindkey("KEY","state");
- undefinekeyfull("KEY");
- unbindkeyfull("KEY");
- activatekey("KEY");
- deactivatekey("KEY");
PWLib 1.2 Under Development

PWLib Casemaker (Version 1.1) at http://forums.court-records.net/viewtopic.php?f=36&t=8788
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title

Gender: None specified

Rank: Suspect

Joined: Sun Aug 03, 2008 11:26 pm

Posts: 7

jeti wrote:
I open up the gif in quicktime, then just hit the arrow buttons to advance a frame at a time. It's really the only reason I was able to animate the chains & locks (along with a lot of stamina and perseverence). ~_~

Edit: And on the next page, I do some of the work for you! :D Check my post for a list showing the order of Hotti's frames. Whee~

Ha! Quicktime. I knew there was a reason not to uninstall that piece o' junk.

Thanks.
Looking at the talk gif it seems like...

A) One or more frames are missing in the CR sprite rips.
OR
B) Whoever made that talking animation created frames that don't exist on the assumption that A is true, and just went with what they thought the animation looked liked.

I'm inclined to put my money on A. Either way the gif looks alright to me, so i'll copy it.
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title
User avatar

AIGE/PWLib Casemaker Developer

Gender: Male

Location: Brazil

Rank: Ace Attorney

Joined: Sun Mar 09, 2008 3:38 am

Posts: 2731

Nice. I have a program on my pc that can extract all frames in sequence to bmp (no transparency, that is its big issue).
PWLib 1.2 Under Development

PWLib Casemaker (Version 1.1) at http://forums.court-records.net/viewtopic.php?f=36&t=8788
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title
User avatar

Gender: Male

Rank: Prosecutor

Joined: Thu Mar 06, 2008 8:36 pm

Posts: 770

May I recommend gifsicle. Quicktime??? Yuck. Gifsicle is what I was using before I added native gif support to pywright. I still think I will go through my art directory and convert all animations to .png, as they are smaller, load faster, and support more colors.
Creator of PyWright, the lovable case construction system!
Also visit the PyWright post.
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title
User avatar

TIME FOR SCIENTIFIC... illustration?

Gender: None specified

Rank: Desk Jockey

Joined: Tue Jul 01, 2008 8:49 pm

Posts: 85

Pronoun wrote:
jeti wrote:
I open up the gif in quicktime, then just hit the arrow buttons to advance a frame at a time. It's really the only reason I was able to animate the chains & locks (along with a lot of stamina and perseverence). ~_~

Edit: And on the next page, I do some of the work for you! :D Check my post for a list showing the order of Hotti's frames. Whee~

Ha! Quicktime. I knew there was a reason not to uninstall that piece o' junk.


My sentiments exactly! :D That's pretty much the ONLY thing I use quicktime for, but it does it well enough to not warrant downloading another program.

saluk wrote:
May I recommend gifsicle. Quicktime??? Yuck. Gifsicle is what I was using before I added native gif support to pywright. I still think I will go through my art directory and convert all animations to .png, as they are smaller, load faster, and support more colors.


I don't doubt it's better than Quicktime (because honestly, I rather dislike Quicktime) but this is mostly just for viewing the correct order of the frames, not to edit the gifs themselves.

Pronoun wrote:
Thanks.
Looking at the talk gif it seems like...

A) One or more frames are missing in the CR sprite rips.
OR
B) Whoever made that talking animation created frames that don't exist on the assumption that A is true, and just went with what they thought the animation looked liked.

I'm inclined to put my money on A. Either way the gif looks alright to me, so i'll copy it.


If by "rips" you mean the sprite sheet, after my run-in with Mike Meekins' sheet I've decided that the gifs are far more reliable and less prone to error. I just printscreen everything I need.

KSA_Tech wrote:
Nice. I have a program on my pc that can extract all frames in sequence to bmp (no transparency, that is its big issue).


Oooh, do tell! That sounds pretty interesting. When you say it extracts the frames, though, do you mean as seperate files?
Image

Hershel Layton: Ace Professor currently in Pre-Production!
Also, I make sprites.
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title
User avatar

Gender: Male

Rank: Prosecutor

Joined: Thu Mar 06, 2008 8:36 pm

Posts: 770

gifsicle extracts frames to separate files is what I meant. I'm pretty sure it handles the transparency as well. But if you are just viewing the animation frame by frame quicktime is probably fine.

If I ever get time to work on my content editor that I have been planning for a while, it should benefit both of our programs.
Creator of PyWright, the lovable case construction system!
Also visit the PyWright post.
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title
User avatar

AIGE/PWLib Casemaker Developer

Gender: Male

Location: Brazil

Rank: Ace Attorney

Joined: Sun Mar 09, 2008 3:38 am

Posts: 2731

As I get home i'll post the gix extractor program name. I used it quite a while ago and don't remember the name.

I need to get back to gif implementation eventually.
PWLib 1.2 Under Development

PWLib Casemaker (Version 1.1) at http://forums.court-records.net/viewtopic.php?f=36&t=8788
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title
User avatar

AIGE/PWLib Casemaker Developer

Gender: Male

Location: Brazil

Rank: Ace Attorney

Joined: Sun Mar 09, 2008 3:38 am

Posts: 2731

-Added quicksave and quickload as PyWright does (to keep the standard). For now i"m using F6 and F7 as save and load respectively. You can enable and disable quicksaving on your project easily:

runscript("pw_enablequicksaveload");

runscript("pw_disablequicksaveload");
PWLib 1.2 Under Development

PWLib Casemaker (Version 1.1) at http://forums.court-records.net/viewtopic.php?f=36&t=8788
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title
User avatar

PWLib / AIGE developer

Gender: Male

Location: 127.0.0.1

Rank: Prosecutor

Joined: Tue May 01, 2007 9:27 pm

Posts: 649

I don't suppose anyone has found Kitten useful as a learning tool at all?

Also would it be rude to ask for peoples opinions on the custom content method I suggested?
If you put your mind to it, you can accomplish anything!
"(Not)Guilty" for PWLib | Emergency Case Selection Fixes
Case 1-1 for PWLib | Pearl
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title
User avatar

Luke: Layton's #1 Apprentice

Gender: Male

Location: United Kingdom

Rank: Bug Sweeper

Joined: Fri May 30, 2008 4:19 pm

Posts: 365

Hmmm: I might do a gifsicle PHP wrapper to export everything to a frame sheet actually... :)

Might be interesting.
Web developer by night, school student by day. That's how I roll.
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title
User avatar

Luke: Layton's #1 Apprentice

Gender: Male

Location: United Kingdom

Rank: Bug Sweeper

Joined: Fri May 30, 2008 4:19 pm

Posts: 365

@DDRKhat: I found Kitten useful - and if I ever do any extra characters/things (not PW ones) I'll probably use the custom content system... But I'm a _terrible_ graphic designer, so that day will probably never come.
Web developer by night, school student by day. That's how I roll.
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title
User avatar

AIGE/PWLib Casemaker Developer

Gender: Male

Location: Brazil

Rank: Ace Attorney

Joined: Sun Mar 09, 2008 3:38 am

Posts: 2731

I prefer sheet animation style over gifs. In gifs you are stuck with the animation as is, while in SAS you can add even sfx. But as many people seem to like it, a way to generate gif to sheet would be nice (and maybe also generate the animation code using SAS Animation Builder. This would make PWLib "support" gifs while i do the makeanimationfromgif() command).

:minuki:

Currently I'm working on file and string commands (waiting for PL from luke) and on the last parts of saving (evidence box, overlay detention center glass, etc), nothing complicated.
PWLib 1.2 Under Development

PWLib Casemaker (Version 1.1) at http://forums.court-records.net/viewtopic.php?f=36&t=8788
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title

Gender: None specified

Rank: Suspect

Joined: Sun Aug 03, 2008 11:26 pm

Posts: 7

Hotti and the update to Valant are done.

Link

I've left Hotti's animation code very fragmented so it'll be easier (for me anyway) to fix any problems with it.
It doesn't need to be formated that way in the official release. 'S up to KSA.

I can't shake the feeling that I've overlooked something... Meh, if I did I'll find out sooner or later.
Either way, I'm moving on to miss True See now. It'll probably take a while to animate her but it seems much more straightforward than, say, Hotti. Refreshing.

You don't mind if I redo her sprite sheets, KSA?
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title
User avatar

AIGE/PWLib Casemaker Developer

Gender: Male

Location: Brazil

Rank: Ace Attorney

Joined: Sun Mar 09, 2008 3:38 am

Posts: 2731

No problem with that. You can redo Trucy's sets if you're gonna animate her.
I did mime quite fast using an align support psd.

I'll add both to the SCS as well.

I will change a bit of the plans and work on AIGE Service System (less cpu usage, faster script execution). I might release PWLib 1.1 tomorrow or so.

Edit:
-Updated Valant
-Added Hotti

I'm starting to consider into keeping each character in his/her own file.
PWLib 1.2 Under Development

PWLib Casemaker (Version 1.1) at http://forums.court-records.net/viewtopic.php?f=36&t=8788
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title
User avatar

AIGE/PWLib Casemaker Developer

Gender: Male

Location: Brazil

Rank: Ace Attorney

Joined: Sun Mar 09, 2008 3:38 am

Posts: 2731

Implemented Services System on AIGE. The results? About 60% increase in long script executions speed (like PWLib initialization).

-Added Block Commenting (/* */) Eg.

/*
runscript("pw_enablevalantoldthinking");
waitresponse();
runscript("pw_showmessagebox");
message("I'm talking and talking some more\nand talking and talking some more\nand talking and talking some more");
runscript("pw_hidemessagebox");
*/

will comment this whole block. Also it must be used as this.
PWLib 1.2 Under Development

PWLib Casemaker (Version 1.1) at http://forums.court-records.net/viewtopic.php?f=36&t=8788
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title
User avatar

PWLib / AIGE developer

Gender: Male

Location: 127.0.0.1

Rank: Prosecutor

Joined: Tue May 01, 2007 9:27 pm

Posts: 649

Soon to be completed and implemented:

Case Selection Screen!
When clicking "New Game" in any Gyakuten Saiban game, you are presented with a nice case selection screen, allowing you to choose which case to execute.

5 hours of work, I have almost perfectly replicated this system and am not too far away from completing it.

Now I know you're thinking "Great, bet it'll be hard to use" .. well that's just it, I've made it as easy to use as possible to cause you nice users as little hassle as possible while also providing a standard for all people to begin their cases.

All cases have the default courthouse background when not completed (Which is replaceable if you want to go hunting for the png file, just make sure you keep the dimensions exactly the same..) and a customizable background image for when it has been completed. It's also easy to define each case (It goes only up to Episode 5) with its own "turnabout button" (Ya'know, click on the "The First Turnabout" button for example, the cases name).

I will give more detail on this when completed, however it should only require you to do about 20 lines of code, which will mostly be copy-paste. Other then that it should be all self-managing!
If you put your mind to it, you can accomplish anything!
"(Not)Guilty" for PWLib | Emergency Case Selection Fixes
Case 1-1 for PWLib | Pearl
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title

Gender: None specified

Rank: Suspect

Joined: Sun Aug 03, 2008 11:26 pm

Posts: 7

KSA:
Good stuff, especially the part about less cpu usage. Right now the program uses up much more than it should.

DDRKhat:
Nice.
I was thinking about writing some largely independant script chunks/functions that could be plopped down in the main script where needed.
First and foremost the plan is to write a function for "faulty objections". My memory is a bit hazy, but I think it shouldn't be hard at all to write scripts to handle those, once we have the ability to create random integers (so Wright can say more than one thing when he messes up).
The only problem is the fact that you'd need to copypaste the whole thing and make a new function every time you make any new alterations to anything in the courtroom (defence attorney, judge, background).

Speaking of random ints, what does the code that assigns a random value to a variable look like, KSA?
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title
User avatar

End Quote.

Gender: Male

Location: UK

Rank: Decisive Witness

Joined: Mon Feb 25, 2008 9:11 pm

Posts: 201

Hey guys! I'm back from my 4/5 days away. I'll be getting to work on the 3rd and 4th music packs, the voice pack (all the objections etc) and then take a look and see if I can do a decent SFX pack.
Image
ImageImage
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title
User avatar

AIGE/PWLib Casemaker Developer

Gender: Male

Location: Brazil

Rank: Ace Attorney

Joined: Sun Mar 09, 2008 3:38 am

Posts: 2731

On both my pcs, AIGE uses up to 5% of CPU on normal run (excluding loading and long executions, that is expected).
AIGE 0.9.400 loads and runs commands faster, so it will consume less cpu in the end (but under long scripts like pwlb init, you will see a 100% usage).

Random is not available on AIGE 0.9.250. I added it to 400.
In it, it will be:
seedgenrandom(); to seed the random (better randonization)
genrandomvalue([val],min,max); to use it.
PWLib 1.2 Under Development

PWLib Casemaker (Version 1.1) at http://forums.court-records.net/viewtopic.php?f=36&t=8788
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title
User avatar

PWLib / AIGE developer

Gender: Male

Location: 127.0.0.1

Rank: Prosecutor

Joined: Tue May 01, 2007 9:27 pm

Posts: 649

Pronoun wrote:
The only problem is the fact that you'd need to copypaste the whole thing and make a new function every time you make any new alterations to anything in the courtroom (defence attorney, judge, background).
I don't see why you would require that...
if you object and it's incorrect, just make it...

runscript("fail_objection");

[fail_objection]
runscript("showpwchar");
runscript("pw_showmessagebox");
runscript("pw_usepwbgcourthall");
runscript("pw_setnameboxtoema");
runscript("setlipsynctochar");
runscript("pw_enableemanormal");
runscript("pw_showadvarrowmenu");
message("You fail Mr.Wright! Try again harder!");
//penalize code here
jumptoscript(""); // re-execute the cross examination code


The difficult part would be returning to the right part of the cross examination code.
If you put your mind to it, you can accomplish anything!
"(Not)Guilty" for PWLib | Emergency Case Selection Fixes
Case 1-1 for PWLib | Pearl
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title
User avatar

AIGE/PWLib Casemaker Developer

Gender: Male

Location: Brazil

Rank: Ace Attorney

Joined: Sun Mar 09, 2008 3:38 am

Posts: 2731

It is not difficult to return to the right point on cross exam. If you use it as you said, the return is automatic. Lee did a working crossexam with penalty code.
PWLib 1.2 Under Development

PWLib Casemaker (Version 1.1) at http://forums.court-records.net/viewtopic.php?f=36&t=8788
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title

Gender: None specified

Rank: Suspect

Joined: Tue Jul 22, 2008 4:47 pm

Posts: 30

(Huzzah, got mah account back! No longer am I Pronoun)

DDRKhat wrote:
Pronoun wrote:
The only problem is the fact that you'd need to copypaste the whole thing and make a new function every time you make any new alterations to anything in the courtroom (defence attorney, judge, background).
I don't see why you would require that...
if you object and it's incorrect, just make it...

runscript("fail_objection");
[...]
The difficult part would be returning to the right part of the cross examination code.

No. I'm talking about the lines that are said in the official games. Both Wright and Apollo have identical failed objections, but if I were to write script to mimic the games, I would have to copy the entire "wright failed objection" chunk of script to make Apollo's (replacing Wright with Apollo in the script). And if I wanted to use a different judge I'd have to do the same.

As far as I know, the way AHLSL works it would be very inconvenient to write a single, general, function that automatically shows the correct people and courtroom currently in use. It's possible, of course, with the use of global variables that keep track of who's in use and a generous amount of IF statements (in subfunctions), but that's just more work than it's worth.

It's easier to just create a script "template" and copy it when necessary. The programmer in me does not like that though, no siree Bob. Not one bit.


KSA, how will seedgenrandom(); be used?
Also, I wonder if the min/max values in the RNG are inclusive. Will genrandomvalue([Variable],0,2); be able to assign values 0, 1, and 2 to [Variable]?
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title
User avatar

AIGE/PWLib Casemaker Developer

Gender: Male

Location: Brazil

Rank: Ace Attorney

Joined: Sun Mar 09, 2008 3:38 am

Posts: 2731

I'm adding two new Services to AHLSL: String and Boolean. With string you will be able to build function names out of variables, so minimizing some crazy amount of ifs at places.

Eg.
i have 4 functions named:
[game1]
[game2]
[game3]
[game4]

and a variable keeping track of the game named [var_gameid]

With string, i could do:
[runcorrectgamefunc]
definevar([fname],"string");
setvar([fname],"game");
appendtostring([fname],[var_gameid]);
runscript([fname]);

instead of 4 ifs.

Not only generating functions, but any kind of string.

-The seed random function is used to seed the random function (like C's srand does).
-Yes, they are inclusive.
PWLib 1.2 Under Development

PWLib Casemaker (Version 1.1) at http://forums.court-records.net/viewtopic.php?f=36&t=8788
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title
User avatar

AIGE/PWLib Casemaker Developer

Gender: Male

Location: Brazil

Rank: Ace Attorney

Joined: Sun Mar 09, 2008 3:38 am

Posts: 2731

-Added String Service.

setstring([strv],value); //allows setting a string to any value (other string or an integer)
appendtostring([strv],value); //appends value to the string (can be other string or integer)
prependtostring([strv],value); //same as append, but prepends.

Eg. (supposing [t] a string var)

setstring([t],42); //[t] will be "42"
appendtostring([t],"app"); //[t] will be "42app"
appendtostring([t],43); //[t] will be "42app43"
prependtostring([t],"prep"); //[t] will be "prep42app43"


-Added Boolean Service
(under testing) Tested
PWLib 1.2 Under Development

PWLib Casemaker (Version 1.1) at http://forums.court-records.net/viewtopic.php?f=36&t=8788
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title
User avatar

End Quote.

Gender: Male

Location: UK

Rank: Decisive Witness

Joined: Mon Feb 25, 2008 9:11 pm

Posts: 201

Sounds useful, although i'll need a tutorial to get my head around how to make use of it, I think.
Image
ImageImage
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title
User avatar

AIGE/PWLib Casemaker Developer

Gender: Male

Location: Brazil

Rank: Ace Attorney

Joined: Sun Mar 09, 2008 3:38 am

Posts: 2731

String is pretty simple to use, while boolean will be a bit harder.
PWLib 1.2 Under Development

PWLib Casemaker (Version 1.1) at http://forums.court-records.net/viewtopic.php?f=36&t=8788
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title

Gender: None specified

Rank: Suspect

Joined: Tue Jul 22, 2008 4:47 pm

Posts: 30

KSA_Tech wrote:
Strings.

Nice.
Is it possible to write something like runscript("function"+[f_number]+"_beta"); to run a function called [function2_beta], or similar?
No big deal if it's not in. It'd just cut down on the number of strings and appending a bit.

I'll write that objection function I mentioned, and comment it properly. Might work as a tutorial, I don't know.
Got to create apollo first though.
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title
User avatar

AIGE/PWLib Casemaker Developer

Gender: Male

Location: Brazil

Rank: Ace Attorney

Joined: Sun Mar 09, 2008 3:38 am

Posts: 2731

AIGE has string variables, but up to 250 it had no string manipulation commands.

No, not that format (unfornatelly at last not yet)

It would be this way:
definevar([fname],"string");
setvar([fname],"function"); //Sets var to "function"
appendtostring([fname],[f_number]); //appends f_number to the string (suppose it is 2). Result: "function2"
appendtostring([fname],"_beta"); //Appends "_beta". Result: "function2_beta"
runscript([fname]); //Run "function2_beta"

If I add as you said, it would easily drop also setvar, modifyvar, etc. It is something for later on.
PWLib 1.2 Under Development

PWLib Casemaker (Version 1.1) at http://forums.court-records.net/viewtopic.php?f=36&t=8788
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title
User avatar

The Rocking Attorney

Gender: Male

Rank: Medium-in-training

Joined: Fri Apr 11, 2008 11:49 pm

Posts: 375

We really need the revised tutos...
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title
User avatar

AIGE/PWLib Casemaker Developer

Gender: Male

Location: Brazil

Rank: Ace Attorney

Joined: Sun Mar 09, 2008 3:38 am

Posts: 2731

I was wondering if a revised version of the tutorial book is really needed nowadays. All new projects are not using PWLib anyway.

I'm adding a Benchmark Service to AIGE so people can run FPS Benchmarks and know how much the FPS varies. Also I changed a bit of the FPS calculation and it seems to be better then previous versions.

-Added FPS Benchmark to the Benchmark Service.
PWLib 1.2 Under Development

PWLib Casemaker (Version 1.1) at http://forums.court-records.net/viewtopic.php?f=36&t=8788
Re: PWLib Casemaker (Released 1.0b at 21/07/2008 11:08PM GMT-3)Topic%20Title
User avatar

AIGE/PWLib Casemaker Developer

Gender: Male

Location: Brazil

Rank: Ace Attorney

Joined: Sun Mar 09, 2008 3:38 am

Posts: 2731

Keeping this thread updated:
Everyone who posted pwlib updates (characters) please pose here again.

Also: PWLib 1.1 + AIGe 0.9.400 might be released on 30/08/2008

:minuki:
PWLib 1.2 Under Development

PWLib Casemaker (Version 1.1) at http://forums.court-records.net/viewtopic.php?f=36&t=8788
Page 43 of 131 [ 5218 posts ] 
Go to page Previous  1 ... 40, 41, 42, 43, 44, 45, 46 ... 131  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