Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - JpSoft

#2
A long time since i came here. Now im working in a little project and i need that the game continues even if it is not the active window (for example,minimized) I remember there is one option to set this, but i cant remember how.

thanks in advance
#3
RickJ ;

Actually, i can change the way how the program assign names to the files, but the program creates a new file .txt every time it is used and it cant be changed  :( It is hard to detail, but managing with many files is the only way.

My last post was relative to the variable inside listbox.FillDirList(variable), since i forgot that i can create this:

String Variable = String.Format("%s%s%s", parameter1, parameter2, parameter3);

And then just include it inside the brackets: listbox.FillDirList(variable); just adjusting the parameters for variable i can fill the listbox with the desired files (obvious, buy i had a lapsus and get panicked)

I already solved the problem just adding a number at the end of the files, using a counter to avoid more than 200 files with the same number. Since now i can manage with 20,000 files and the game will just need around 3,000 i can continue  :=

I also want say that the game works incredibly fast in the tests (faster that i expected) It open, reads and close the 3,000 files in less than 1 second  :o even when my pc is not really faster.
#4
Ok, first problem  :-[

Can i use a variable with listbox..FillDirList() ?

I created the entire bucle, but now i found this issue. Any idea?

SOLVED!!

#5
Thanks guys for y our ideas  ;D

Split the files in 20 subdirectories looks a great sugerence; there are no problem with that (actually, 20 subdirectories are enough for 4000 files).

But it gives me a even better idea; just adding a number from 00 to 99 at the end of any file name when it is created (with a counter to avoid that more than 200 files have the same number); then, i could use it to search partially the directory 100 times and get all the files  :) Since this is only necessary when the game loads, there are no problem if it takes a while to complete.

Was the idea to split the work what gives me the workround. I will try it right now and post here the resulting code in it works (if not, to looks for more help  ::) )

;D ;D ;D ;D
#6
Ok, but i dont know how i could get the filenames from the directory, since it are not previously known.

ListBox.FillDirList was my first idea, but the 200 items limitation its a problem; actually, there are around 3K txt files (randomly generated) to process  :-\ and its names changes continuosly

Anyway to increase this limit? (200 items per listbox) Any work around?


#7
Ok guys, here are a lot of genius that could probably see the solution to my problem  ???

I need work in my game with a lot of text files. All this files have the same extension ".txt", and its names have the same leght; for example:

tregor.txt
regore.txt
benedy.txt
.
.
.

Also, all the files have a identical format in 5 lines:

integer A
integer B
integer C
integer D
integer E

I know how get and process the information (opening, reading and closing the files), but i cant imagine how work with a LOT (hundreds, maybe thousand) of files whichs names are NOT previously knows. I minds, i need and script that can read the data from any file ".txt" contained on  "\directory"  to create something like a database.

Could this be done in AGS? I really need this, and even when i can do some very nice things scripting, i cant imagine how i could handle with this.
#8
AGS Games in Production / Re: Poker tools
Sun 06/03/2011 19:36:24
I will continue developing this one, so please, keep this topic open.
#9
AGS Games in Production / Re: Poker tools
Sun 06/03/2011 18:32:29
Version 0.1 is ready and available to download. (http://www.megaupload.com/?d=QUZV1E4K)

Includes the preflop calculator ready for 6 players



Also, the graphical interface was improved.



Version 0.2 will include hand analisys totally working.
#10
AGS Games in Production / Re: Poker tools
Fri 04/03/2011 11:40:48
Yep, it is made in AGS entirely.

Almost improved the preflop calc to allow 6 diferent players.

Baron, the AI in holdem becomes a lot complex in the way the hand progress. Set AI decissions preflop is easy, but in the flop is really difficult, in the turn almost impossible and in the river totally imposible without a 100K-lines function  ;D; thats the reason i abandoned the last project. (The preflop function had 300 lines and was very easy to make, but in the flop i abandoned with +6000 frustrated) Thanks for the comment  :)
#11
AGS Games in Production / Poker tools
Thu 03/03/2011 14:03:44
Almost 1 year ago, i were introduced into the poker world. I started then a game of poker, but i were stucked in the algorithm to create a good IA, so i abandoned the project.

Some days ago, my friends into the online poker proposed me create a little poker tools software. I taked the libraries i created for the abandoned project and we started the work; Its nice create a poker software when yoy work with people who also likes the game.

We are 4 players in this project: Macidi1977, RafaIndriago, Cesar_Natera ans s3l4ssi3; we have +25,000$ of tournament earnings on last 12 months as you can check in www.oficialpokerrankings.com .

We started the project with a basic preflop calculator for two players, only to test the old libraries. Version 0.0.1 is available here (spanish only)(http://www.megaupload.com/?d=P7B8JG4X).





If you want contribute with something please just let me know. You can find me in fulltilt veryoften (macidi1977) or via email or msn (pedr0tero@hotmail.com) Cash transfers (in Fulltilt or Pokerstars) are awarded if your help is usefull.
#12
AGS Games in Production / Re: Poker Simulator
Sat 08/05/2010 16:06:25
A new intro room and main menu.



Also, the odds calculator functionality will be added.
#13
AGS Games in Production / Poker Simulator
Tue 04/05/2010 22:32:32
Well, i believe i can post the info here;

I begun playing poker some years ago, but in the last year i really improved my skills and learned a lot about this game/sport; i can proudly say that actually i win money playing in the internet and had luck in some recent tournaments. After that, i decided develop a poker game to share this.

You start in a 6-players tournament table, with blinds increasing, and your goal is defeat all them. In future versions (hopefully) you will start with a little amount of money and will play tournaments until you can win the WSOP.







Its just the start, im actually working with pots system which is a lot more hard to code than what i believe when i started. Actually is fully functional but with some bugs in the bets funtionality.

The IA was coded in two months, working with almost every possible situation. Now, the CPU will play with a professional level; bluffs, semi bluffs, slowplays, steals and odds probablilitys are incorporated on it; will calculate if you call-raise very often to determine if you are bluffing  ;D

Actually, work is something like this...

Graphics: 100 % (i will not use better graphics, its not necesaary)
sound: 100 % (just basic sound like "call" "raise" and so)
Script: 80% (just some minor fixes need to be made)
BetaTest: 0% (will need a goo test before be released)

Jpsoft
#14
Really nice game; short, but maybe the best (IMO) AGS game i ever played.
#15
The built-in pathfinder worked worng in a 1600x1400 pixels room i designed for a game. I cant remember exactly the details, but i believe the problem was related to the high of the room.
#16
I dont like dead-ends, and probably, the most important thing for me are the dialogs.

E
#17
Critics' Lounge / Isometric
Sat 13/06/2009 19:01:07
Well, not really sure about where to post this, so i will try here

Im working on a Isometric Background creator. Until now, you can create things like this in five minutes



Until know, im just including the system to add block. I know its not very detailed, so im looking for tips to improve the isometric design overall. I will use a big database of predefined ISO sprites, and i want improve my skills before start drawing all them.

Jp
#18
You have the solution here

I had this same trouble and i solved it.

Jp
#19
Quote1. Is there any other mechanism that can change a character's room?
No, AFAIK. ChangeRoom is the function specially designed for this job.
Quote2. Is it possible that 'changeRoom' could be called, then canceled later in the same function?
Im not sure about this, but i guess not. You can insert a variable which can be updated and verified into the same function and then decide what to do next.
#20
One member of our team just worked in a dialogs module; she included an option to disable the options already were selected, even when the player still can see it (i guess it could be usefull for this case too)

I will post the code as soon as i have it

Jp
SMF spam blocked by CleanTalk