Windows IDE corrupts the created files

Forum for discussion about the Windows IDE of Hollywood
Post Reply
User avatar
Juan Carlos
Posts: 937
Joined: Mon Sep 06, 2010 1:02 pm

Windows IDE corrupts the created files

Post by Juan Carlos »

I have these problem with a project with this code:

Code: Select all

	Case 18:
		If OrduEscupe=1
		   Local Escupe1=Rnd(2)
		   If Escupe1=0
		      OrduEscupe=0
		      p_AtaqueArcoEnemy()
		   Else
		      p_AtaqueEspadaEnemy()
		   EndIf
		Else
		   p_AtaqueEspadaEnemy()
		EndIf
It is a simple code to make an enemy attack, this same code in a older hws file works fine, but in three verisons The newer versions suddenly stopped working. I've tried copying the same code from the working version and nothing works. I even copied code from the non-working version to the working one, and the old version still works.
Even I could see that sometimes the code loses the value of the variables, whether these are global or local, in this case the corrupt code damages the value of OrduEscupe=0 and with the else the code is freeze when in the old version in this point the code use the p_AtaqueEspadaEnemy() funtion.
Any solution?
plouf
Posts: 672
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: Windows IDE corrupts the created files

Post by plouf »

maybe you could open text file (hws) with notepad++ or another "Advanced" editor to see what has corrupted
Christos
Flinx
Posts: 350
Joined: Sun Feb 14, 2021 9:54 am
Location: Germany

Re: Windows IDE corrupts the created files

Post by Flinx »

Juan Carlos wrote: Tue Dec 23, 2025 9:57 pm I've tried copying the same code from the working version and nothing works. I even copied code from the non-working version to the working one, and the old version still works.
This should tell you that the bug is not in this part of the code.
There's not much more we can say about it because we don't know what your program does elsewhere.
I only see that you will surely change the value of OrduEscupe elsewhere in your program, because otherwise it would be zero after a few runs and remain so.
User avatar
Juan Carlos
Posts: 937
Joined: Mon Sep 06, 2010 1:02 pm

Re: Windows IDE corrupts the created files

Post by Juan Carlos »

Well, I used like base a previous version of my code I added the new code fro the corrupt file, and no the problem with that part of code don't appears, I used the Notepad++ to see if there are some strange character but neither I saved the code with the Notepad++ but the problem continues, this is the first time that I have with the IDE and corruption of hws files even with other Hollywood versions too, even working in code and it freezes the IDE and I don't save it the problem is worst, restart IDE and the hws file is blank although the code has the size in bytes for example 52 kb I tryed to open the code with Notepad++ and the code also is blank, perhaps the problem is in the way the IDE handles files, keeping them open, might generate an invisible bug due to some strange circumstance. But the corrupt code has the same problem even compiled with other Hollywood systems.
Flinx
Posts: 350
Joined: Sun Feb 14, 2021 9:54 am
Location: Germany

Re: Windows IDE corrupts the created files

Post by Flinx »

Juan Carlos wrote: Thu Dec 25, 2025 10:56 am I used like base a previous version of my code I added the new code fro the corrupt file, and no the problem with that part of code don't appears
That means, that this code isn't corrupted.
I used the Notepad++ to see if there are some strange character but neither I saved the code with the Notepad++ but the problem continues, this is the first time that I have with the IDE and corruption of hws files even with other Hollywood versions too, even working in code and it freezes the IDE and I don't save it the problem is worst, restart IDE and the hws file is blank although the code has the size in bytes for example 52 kb I tryed to open the code with Notepad++ and the code also is blank, perhaps the problem is in the way the IDE handles files, keeping them open, might generate an invisible bug due to some strange circumstance. But the corrupt code has the same problem even compiled with other Hollywood systems.
I don't fully understand the description (after all, you can't compile empty code), but in any case, I can't reproduce it. I have been using the IDE intensively for several years on different systems and have never experienced such behavior. The IDE also does not keep a source code file open. You can rename or delete a file that is currently open in the IDE with no problem.
If the files are really empty after you save them, I would look for the problem elsewhere on your PC.
Do you have any antivirus software installed that might interfere with the functions for saving or reading files?
User avatar
Juan Carlos
Posts: 937
Joined: Mon Sep 06, 2010 1:02 pm

Re: Windows IDE corrupts the created files

Post by Juan Carlos »

Flinx wrote: Sat Dec 27, 2025 12:42 pm
Juan Carlos wrote: Thu Dec 25, 2025 10:56 am I used like base a previous version of my code I added the new code fro the corrupt file, and no the problem with that part of code don't appears
That means, that this code isn't corrupted.
I used the Notepad++ to see if there are some strange character but neither I saved the code with the Notepad++ but the problem continues, this is the first time that I have with the IDE and corruption of hws files even with other Hollywood versions too, even working in code and it freezes the IDE and I don't save it the problem is worst, restart IDE and the hws file is blank although the code has the size in bytes for example 52 kb I tryed to open the code with Notepad++ and the code also is blank, perhaps the problem is in the way the IDE handles files, keeping them open, might generate an invisible bug due to some strange circumstance. But the corrupt code has the same problem even compiled with other Hollywood systems.
I don't fully understand the description (after all, you can't compile empty code), but in any case, I can't reproduce it. I have been using the IDE intensively for several years on different systems and have never experienced such behavior. The IDE also does not keep a source code file open. You can rename or delete a file that is currently open in the IDE with no problem.
If the files are really empty after you save them, I would look for the problem elsewhere on your PC.
Do you have any antivirus software installed that might interfere with the functions for saving or reading files?
I use it with Windows 7 without antivirus and Internet connection, the CPU is an intel ATOM on Gibabyte board, a simple mainboard, without a graphic card, a simple PC to program or work point.
Flinx
Posts: 350
Joined: Sun Feb 14, 2021 9:54 am
Location: Germany

Re: Windows IDE corrupts the created files

Post by Flinx »

I don't have many ideas left. A bad hard disk would cause problems with other activities too.
Could you provide an example of a file that cannot be compiled, or is the program too large for this?
User avatar
Juan Carlos
Posts: 937
Joined: Mon Sep 06, 2010 1:02 pm

Re: Windows IDE corrupts the created files

Post by Juan Carlos »

Flinx wrote: Tue Dec 30, 2025 4:57 pm I don't have many ideas left. A bad hard disk would cause problems with other activities too.
Could you provide an example of a file that cannot be compiled, or is the program too large for this?
Yes, the code is the main engine for the Los Malditos del Valle del Cerro, battle board, I don't think the mechanical hard drive is the problem at the moment.
But I wrote about this strange case to know if something similar has happened to him too.
Post Reply