
Quote from LeMachinga on September 11, 2021, 4:29 pmOs expongo mi problema. Como sabeis he hecho dos juegos para Steam. Si bien uno de los juegos me funciona bien, y a los testers también, el mismo programa hecho con visualneo, a la hora de hacer los cálculos a algunos usuarios le da error.
Muestro pantallas:
- La mayoría de usuarios le muestra bien las cantidades, hagan lo que hagan (Imagen 1).
- A unos pocos los cálculos les da error (Imagen 2)
He revisado el código y no hay ninguna división por 0 que pueda producir esto, ni mezcla números con letras ni similar. El programa es el mismo para todos, y a unos hagan lo que hagan desde el principio les da error (siempre, a cada partida) y a otros nunca les ha aparecido (A mi mismo por ejemplo, y a otros testers).
Los ordenadores donde ha dado error, de los usuarios, afirman tener buenos pcs (mejores y más rápidos que el mio propio.
¿alguna idea de porque un programa visualneo puede mostrar bien los cálculos y en un ordenador y no en otro?.
La verdad es que llevo ya así mes y pico y estoy desesperado, por eso he venido a preguntar aquí, por si hubiera alguna pista o algo porque es muy dificil arreglar algo que a mi siempre me ha funcionado (haga lo que haga), y algún usuario en concreto no.
Muchas gracias. (Por si alguien sabe algo).
I expose you my problem. As you know I have made two games for Steam. Although one of the games works well for me, and the testers also, the same program made with visualneo, when doing the calculations some users get an error. I show screens: Most users show you the amounts well, whatever they do (Image 1). A few of the calculations give an error (Image 2) I have gone through the code and there is no division by 0 that can produce this, nor does it mix numbers with letters or the like. The program is the same for everyone, and whatever they do from the beginning, some get an error (always, every game) and others have never seen it (myself, for example, and other testers). The computers where the error has occurred, from the users, claim to have good PCs (better and faster than my own. Any idea why a visual program can display calculations well and on one computer and not on another? The truth is that I've been like this for a month or so and I'm desperate, that's why I've come to ask here, in case there were any clues or something because it is very difficult to fix something that has always worked for me (whatever I do), and some specific user does not. Thank you. (In case anyone knows something).
Os expongo mi problema. Como sabeis he hecho dos juegos para Steam. Si bien uno de los juegos me funciona bien, y a los testers también, el mismo programa hecho con visualneo, a la hora de hacer los cálculos a algunos usuarios le da error.
Muestro pantallas:
He revisado el código y no hay ninguna división por 0 que pueda producir esto, ni mezcla números con letras ni similar. El programa es el mismo para todos, y a unos hagan lo que hagan desde el principio les da error (siempre, a cada partida) y a otros nunca les ha aparecido (A mi mismo por ejemplo, y a otros testers).
Los ordenadores donde ha dado error, de los usuarios, afirman tener buenos pcs (mejores y más rápidos que el mio propio.
¿alguna idea de porque un programa visualneo puede mostrar bien los cálculos y en un ordenador y no en otro?.
La verdad es que llevo ya así mes y pico y estoy desesperado, por eso he venido a preguntar aquí, por si hubiera alguna pista o algo porque es muy dificil arreglar algo que a mi siempre me ha funcionado (haga lo que haga), y algún usuario en concreto no.
Muchas gracias. (Por si alguien sabe algo).
I expose you my problem. As you know I have made two games for Steam. Although one of the games works well for me, and the testers also, the same program made with visualneo, when doing the calculations some users get an error.
I show screens:
Most users show you the amounts well, whatever they do (Image 1).
A few of the calculations give an error (Image 2)
I have gone through the code and there is no division by 0 that can produce this, nor does it mix numbers with letters or the like. The program is the same for everyone, and whatever they do from the beginning, some get an error (always, every game) and others have never seen it (myself, for example, and other testers).
The computers where the error has occurred, from the users, claim to have good PCs (better and faster than my own.
Any idea why a visual program can display calculations well and on one computer and not on another?
The truth is that I've been like this for a month or so and I'm desperate, that's why I've come to ask here, in case there were any clues or something because it is very difficult to fix something that has always worked for me (whatever I do), and some specific user does not.
Thank you. (In case anyone knows something).
Uploaded files:

Quote from luishp on September 11, 2021, 5:16 pm@lemachinga con la información que compartes es muy dificil saber que puede estar pasando. Lo único que se me ocurre es que los cálculos dependan de algún proceso que lleve tiempo y ese tiempo sea demasiado corto en los ordenadores más rápidos. Pero es sólo especulación... En principio el mismo programa debería comportarse igual en dos ordenadores diferentes, a no ser que su comportamiento dependa de una característica concreta de esos ordenadores. Como te digo, con tan poco información es imposible saberlo.
Saludos!
@lemachinga con la información que compartes es muy dificil saber que puede estar pasando. Lo único que se me ocurre es que los cálculos dependan de algún proceso que lleve tiempo y ese tiempo sea demasiado corto en los ordenadores más rápidos. Pero es sólo especulación... En principio el mismo programa debería comportarse igual en dos ordenadores diferentes, a no ser que su comportamiento dependa de una característica concreta de esos ordenadores. Como te digo, con tan poco información es imposible saberlo.
Saludos!

Quote from LeMachinga on September 11, 2021, 5:33 pmEl caso es que estaba pensando en eso mismo. El código es muy largo y los dos ordenadores donde han dado ese error son muy potentes. Quizá le meta un 'Delay' bajo el código a ver que pasa.
Y sobre la información Luis, es que no puedo ofrecer más, ya que no se que es lo que pasa y como a mi y a un montón de testers el juego nos va fenomenal, y a unos pocos nada más pulsar el botón de 'Jugar' les aparece un error (otros no lo encuentran nunca, yo entre ellos, toque lo que toque fuerce lo que fuerce). xD
Gracias por tu ayuda.
El caso es que estaba pensando en eso mismo. El código es muy largo y los dos ordenadores donde han dado ese error son muy potentes. Quizá le meta un 'Delay' bajo el código a ver que pasa.
Y sobre la información Luis, es que no puedo ofrecer más, ya que no se que es lo que pasa y como a mi y a un montón de testers el juego nos va fenomenal, y a unos pocos nada más pulsar el botón de 'Jugar' les aparece un error (otros no lo encuentran nunca, yo entre ellos, toque lo que toque fuerce lo que fuerce). xD
Gracias por tu ayuda.
Quote from Gaev on September 11, 2021, 6:56 pm@lemachinga
You might investigate further by ...
1) Run the compiled Application (.exe) on your computer (not the version using F8/F9) ... usually, the debugger slows things down, but in this case, it might be slowing things down enough for the variable with value of Error to be replaced by a number value ... do you have Timer objects within your Application ?
2) I am assuming that the display ...
FOOD (Error/-200). TOTAL Error per Turn)
... is made up of [someVariable] ... this variable is perhaps taking time to change value from Error to a number
If the .exe runs fine on your computer, temporarily add a TextBox whose display is [someVariable].
3) Finally, the error image shows Turn 4 but the non-error one shows Turn 1 ... perhaps the error is caused at Turn 4 ? ... make sure you run steps 1 and 2 until Turn 4
You might investigate further by ...
1) Run the compiled Application (.exe) on your computer (not the version using F8/F9) ... usually, the debugger slows things down, but in this case, it might be slowing things down enough for the variable with value of Error to be replaced by a number value ... do you have Timer objects within your Application ?
2) I am assuming that the display ...
FOOD (Error/-200). TOTAL Error per Turn)
... is made up of [someVariable] ... this variable is perhaps taking time to change value from Error to a number
If the .exe runs fine on your computer, temporarily add a TextBox whose display is [someVariable].
3) Finally, the error image shows Turn 4 but the non-error one shows Turn 1 ... perhaps the error is caused at Turn 4 ? ... make sure you run steps 1 and 2 until Turn 4

Quote from LeMachinga on September 11, 2021, 7:25 pmThank you for your response.
These images are 2 different games: First of one is my game (no errors), second is from one user (with error).
The errors have been FIXED!. The problem were the very fast Pcs. I have added a 'Delay "500"' instruction behind the each long code with important calcs.
Thank you for your response.
These images are 2 different games: First of one is my game (no errors), second is from one user (with error).
The errors have been FIXED!. The problem were the very fast Pcs. I have added a 'Delay "500"' instruction behind the each long code with important calcs.