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

Topics - JpSoft

#1
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
#2
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.
#3
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.
#4
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
#5
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
#6
Just trying different things this sunday, i try to run some AGS games using DosBox 0.72. I get the error "This program cant run in DOS mode" or something like that. Maybe im wrong, but i believe i read one topic about someone runing AGS games in DosBox. It is possible? And if so, how?

Jp
#7
Just adding new features, im trying to include a system to preview the screenshot of the save game. All work perfect, but now when i try to load a saved game AGS crash (and generates a crash file) I guess is something relative to the Dynamic Sprite used to get the screenshot from the saved game, but i take care to delete it before save the game (so, i suppose the saved game file do not contains the dynamic sprite) I can restart the game, but not restore a saved game

I do not find a working module with custom save-loads including screenshots, so i dont know if anyone else had this trouble too. Any help is more than apreciated.

Jp
#8
I post here since i believe this is a very basic question, but i cant figure how to solve this.

Im using the eSkipEscOnly option when i configure the cut-scenes. I dont have troubles with this, and it works correctly. But if the player pauses the game during a cutscene and unpauses it pressing esc, AGS inmediately skips the scene. Or course, i tried that the player was unable to unpause the game with esc, but if esc key is pressed while the game is paused, the scene will be skipped anyway when the player finally unpauses the game, i guess because AGS still catch the keypreses while it was in pause.

Of course, i tried using  this

Code: ags
if ((keycode == 27) && (IsGamePaused())) keycode == 0;


But it do not works. Any idea? Its not a really important issue, but we all know that ESC is usually the first key we press to unpause any game (or even, any software program) and i do not want that the player could lost some important cutscenes just for a matter of bad scripting.

Jp
#9
Like part of a game I'm colaborating, one room is exclusively for a single arcade. Since it is a little complex, i created its own module (player moves, shot impacts, etc) The arcade works perfect until today when i included this
Code: ags

Display("I dont remember what, but something very simple like this");


I get confused the next time i test the game; it crashed, givin an error about it was imposible to allocate around ¡¡500 MB!! in the memory. I tried everything (even restarted the PC) but the game crashed always, but not inmediately after the display function; it continued until the final of the blocking sequence. I deleted the line and the game works perfect again. I tried including the line in other moment, but is absolutely imposible use the Display function in that room without get that error (Display works perfect in all the other rooms, more than 20) This was reported before? I checked the forums for a while and i dont see nothing.

Im using 3.1.2 SP1. The module uses some dynamicsprites functions for objects (health bars and so on) , but very simple ones (anyway, the dynamic sprites have 110x16 pixels maximum)  Also, the GUI for display commands is customized, but worked perfectly until today.

I found a little workaround for what i were doing, but since the pause system of the game is using a Display("Pause"), the game crashh after you pause the game.

Jp
#10
First of all, i want congratulate all the FC Barcelona fans here (if any) After won 3 titles the same year (National league, National cup and Champions league) they have enough reasons to feel proud of they team. Just one step down, ManU also had a very complete season, but they were stopped in the finals against the Barcelona.

This days i checked the AGS games database and i dont found sports simulators. Not a single one. I know that AGS is not a engine for this, but i found almost avery genre there but sports simulators. Thas make me feel curious. Maybe a SS is a lot of work for a fan-game? Not many athletes around here? Im sure AGS have the potential to create nice SS for football, baseball, basketball, tennis.

Jp
#11
Well, after a failed try to include voices, we canceled it and now we are trying to delete the referebces in the scirpt. Even when all the references was deleted, speech.vox is still generated every time the game start. Could this be fixed?

Jp
#12
I suppose its a very basical question, but could i pause the game meanwhile one player is talking with the "say" command?

Example: (The code is not correct, but i guess you could udnerstand whatI'm talking about)

I have this is the On_Key_press function (GlobalScript)
Code: ags

if (keycode == EKeyP)
  {
  if (IsGamePaused()) UnPauseGame();
  else PauseGame();
  }


But if i press "P" during a cutscene the game do not pauses. How i could fix this? How i could implement a pause system which will work even in cutscenes? (I really need it since the game have a 10 minutes cut-scene  ::))

Note: The first line that warn AGS to not read keys when the game is paused was erased, so this is not the problem.

Jp
#13
Adventure Related Talk & Chat / MI2 Template
Thu 30/04/2009 21:35:36
One of my friends is ripping all the graphics from MI2: Le Chuck Revenge. Some of them are easy to get using Scumm revisited, but some others are very difficult. Anyone knows something about this? Costume Scumms do not works (apparectnly) with MI2. I searched the web and all i found was the sprites from Guybrush, Elaine, LeChuck and Stan.

Thanks in advance. Also, he just finished ripping the sprites from SQ1 (original version); if anyone have interest just PM.

Jp

PS I just saw that i posted this in the wrong section; sorry and please move it.
#14
I just checked the game database looking for a game to play and i felt sad when i saw that a little percentage of games have translations. Just few have spanish translations, which could explain why not many spanish speakers knows AGS. I Could say the same for another languages.

I just open this topic to encourage developers to work a little finding someone who help you in translations, or at least, create a plain translation with automatic translators available on internet. Is better than nothing.

Jp
#15
Advanced Technical Forum / PathFinder
Mon 20/04/2009 13:05:27
I want know if there is a limitation in the size of one room in order to the build-in pathfinder works properly. I hace a large room (2400x1700) where the pathfinder looks like is working unproperly. I checked al the walkable areas and the script and everything is ok (actually, the game works perfect in a big room with all the room area selected as walkable area) Its possible that it is an AGS BUG?

I also created a function to change the view of NPCs when they enters into a region, but when they change, the player starts to move very fast. The view is exactly than the previos one, so i dont understand why, specially because there are another function to change the views when you select them.

Any ideas?

Jp
#16
Well, im trying to adjust this functions, but i dont understand exactly what im doing bad.

Code: ags

object[1].blockingheight(50);
object[1].blockingwidth(38);


What i get with this is a 100 pixels height rectangle, with the center in the low line of the object, but i want that the blocked area  exactly the same as the object image (100x76 pixels)

so i do this
Code: ags

object[1].baseline = object[1].y-50;
object[1].blockingheight(50);
object[1].blockingwidth(38);


but the blocked area is exactly the same as before.

I dont have the source code here, so maybe i wrote some words wrong, but i believe the idea is clear. The manual says that the blocked area starts from the baseline in both directions (up and down)

All the objects are randomly positioned when the players enters the room.

Jp
#17
That is the question: is the air hockey a well known sport (or game, as you prefer)? Have you ever played a game? Maybe a little tournament with your friends? Did you know that there are a lot of well organized group of players around the world?

http://es.wikipedia.org/wiki/Air_hockey

You can find there a lot of info in spanish (and of course, links to another languages)

Jp

EDIT English link  ;)

http://en.wikipedia.org/wiki/Air_hockey

#18
I had created a lot of Module scripts for my game and for 2 more im colaborating. I created this modules with a lof of specific stuff, but basically, are designed to do something specifically. Now, im starting to create Modules available for everyone, but i have some things i do not understand very well.

1-- Module Advanced Save-Restore: Name is self explanatory. Was created originally for Galactic Battlefare; Manage the AGS slots, avoiding problems or BUGs when the game have an "autosave" option (slots over 50); also, selects the same slot you restored last when you try to save again, prevents for unwanted rewrite slots, disables the game interface when one of the GUIs are displayed and a lot more functions. My problem is because i created standard GUIs for the Modules and included all the code in the module itself, but of course, function relatives to the buttons must be placed in the global script... which i do not have access from a module (functions like bSaveGame_on_click(MouseButton button) How i can include this functions inside a Module in the way it could be available for anyone just importing the script and the GUIs? I tried with the on_moue_click inside the module, but it do not works (AGS do not recognize clicks over the GUIs in the normal way). I now i could create a module function to detect when the player makes click and detect where it was done, but maybe there is an easier way.

Module Read Keyboard: Created for the AGS Wars Map Editor, give the functionality to read inputs from the keyboard in a more advanced way than the parser or text_boxes, even with many diferent inputs at the same time (fully customizable, and accepts the "ñ"  8)) This one do not needs any GUI since it generates string variables which the players choose how to show in the screen, usually with a sentence like labelWhatEver.Text = String ReadFromKeyboard(), but i want create enum groups like eMouseLeft and so, and the manual reference is too poor for my mind and there are not references in the forums. (for example, it have a function to set alignment, and i want it works like SetAlignment = eAlignJustified. I hope i explained itwell and someone knows some module which includes a
good example for enum sentences.

Module Arcade Game: Created for Galactic Battlefare, offers a simple way to determine if objets and/or characters are really coliding with anything. I read the SSH module after i wrote my one and well, just use SSH's  module better.

Also, since my modules are commented in spanish i dont know if is needed to translate it. I think that at least it works for spanish speaking people.

Jp
#19
This morning i was working on my game when the power supply fails and my computer shut down. When the energy returns, i tried to load the game, but i received too many error messages, including some asking for "HelpModule.ash" and "CustomMaps.ash", which are scripts from the map editor im creating as a individual application. I copied both scripts in the game main folder (both files for any script) and the game finally opened, but now the game contains this scripts(when this scripts was not part of the game), but lost the two it originally have, even when the script files are still in the game folder. Also, all the sprites are working unproperly and the worst lost, 16 GUIs, specially the GUI for one player menu :-[... Only the global script and room scripts keep untouched.

I saved the folder and did some trys, but i was unable to recover the GUIs or the lost scripts: functions and engine. Is there any way to recover that from the files in the game folder? More important, is there anyway to recover the GUIs???? Some took me days to complete it.

My last complete backup is from 1 month ago... Lucky, the map editor looks untouched (i forgot to mention that i had 2 AGS opened at the switch off moment: one for each program) and a lot of functions are included in both projects, but others not.

Thanks for any help. If anyone need the files in order to recover the scripts or the GUIs, just let me know and i can send you the rmaining folder zipped.

Jp

#20
Hi you all;

Im not sure if this post belongs here, but i will try.

I will release a tool to create maps for my RTS (which is not released yet) and i want offer it with a installer, so when the game is released (next month) it will be installed too in the same folder. I were looking in the internet and i dont found nothign free (very important) which offer the posibility to detect if the map creator is already installed in the pc.

What im looking for is:

When the player will install the game, the installer must recognize if the editor is already installed and act according this: the player can add the map creator or not.

Anyone knows something about any aplication with this features?

Jp
SMF spam blocked by CleanTalk