Staredit Network > Forums > Modding Discussion > Topic: Problems with Current Modding Tools
Problems with Current Modding Tools
Mar 4 2015, 3:49 am
By: Sand Wraith
Pages: < 1 11 12 13 14 1523 >
 

Jul 17 2017, 8:54 pm Pr0nogo Post #241



Alright, I'll forward that to them. Thanks.

Any chance we can get the AI-related discoveries from this thread put into PyAI's documentation?

edit: Attempting to ctrl+z in PyAI does not revert changes successfully. Sometimes the text is deleted, and then the deleted text is pasted back in a bizarre way.

Post has been edited 1 time(s), last time on Jul 17 2017, 10:48 pm by Pr0nogo.




Jul 18 2017, 1:04 am Neiv Post #242



Quote
> python pyai.pyw
Traceback (most recent call last):
File "pyai.pyw", line 2, in <module>
from Libs.setutils import *
File "C:\Pelei\scbw_yms\Ohjelmia\PyMS\Libs\setutils.py", line 278, in <module>
if os.path.isdir(path):
NameError: name 'path' is not defined

PyMS is expecting installation registry keys to exist?



None.

Jul 18 2017, 3:20 am poiuy_qwert Post #243

PyMS and ProTRG developer

Quote from poiuy_qwert
I use Atomic file access (write to a temporary file, and if that is fine, replace the existing file with the new temp one) to prevent save crashes from corrupting files, but it looks like in some cases my AtomicWriter is still "completing" with an empty file :( I'll do a sweep and fix them all soon.
This should be fixed now.

Quote from Pr0nogo
Quote from poiuy_qwert
All tabs seem to be working fine for me, except for Portrait which wasn't saving its edit state since I combined Idle and Talking portraits. I fixed the Portraits tab, and made some other tweaks as well. If you run into issues again, if you can try and remember as much detail about what you were doing, I can look into it again.
Literally making any change to units.dat, saving, and attempting to close the program reproduces it, but it doesn't do that on weapons, images, sprites, or flingy. If it does it on others I'll let you know.
Should be fixed now.

Quote from Pr0nogo
Any chance we can get the AI-related discoveries from this thread put into PyAI's documentation?
Yep, I have plans to look into making updates for things from these threads:
Little known iscript/images.dat tricks
.dat file unknowns
Defining AI commands and functions
Information on orders.dat fields

Quote from Pr0nogo
edit: Attempting to ctrl+z in PyAI does not revert changes successfully. Sometimes the text is deleted, and then the deleted text is pasted back in a bizarre way.
Hmm, I'm not sure how much control I have over that. I'll look into it. Do you have some steps I could follow to reproduce the issue?

Quote from Neiv
Quote
> python pyai.pyw
Traceback (most recent call last):
File "pyai.pyw", line 2, in <module>
from Libs.setutils import *
File "C:\Pelei\scbw_yms\Ohjelmia\PyMS\Libs\setutils.py", line 278, in <module>
if os.path.isdir(path):
NameError: name 'path' is not defined

PyMS is expecting installation registry keys to exist?
It shouldn't require them, but it does try to use them if they exist, it just had faulty logic. Should be fixed now.

Thanks!

Post has been edited 1 time(s), last time on Jul 18 2017, 1:29 pm by poiuy_qwert.




Jul 18 2017, 3:39 am Pr0nogo Post #244



Quote from poiuy_qwert
Hmm, I'm not sure how much control I have over that. I'll look into it. Do you have some steps I could follow to reproduce the issue?

Yes, select any group of AI, delete it, and then hit ctrl+Z a few times.




Jul 18 2017, 1:42 pm poiuy_qwert Post #245

PyMS and ProTRG developer

Quote from Pr0nogo
Quote from poiuy_qwert
Hmm, I'm not sure how much control I have over that. I'll look into it. Do you have some steps I could follow to reproduce the issue?

Yes, select any group of AI, delete it, and then hit ctrl+Z a few times.
These instructions are either not detailed enough (what is a "group of AI"?), or do not reproduce the issue consistently enough. I can't figure out the issue if I can't reproduce it. You must give me as much details as possible, every little thing from launching the program to the issue, so that it can be reproduced 100% of the time. It should be something like this completely fake example:
1) Open default files
2) Open the script XXXX
3) Find the first "wait"
4) Delete "it(" from the "wait(1)"
5) Add blah before the "wa1)" so its "blahwa1)"
6) Ctrl+z two times
7) I'm left with is "1)it(" instead of "wait(1)"




Jul 18 2017, 2:20 pm Pr0nogo Post #246



Open 'Brood Wars Terran 5 - Town A' in this script
Click on line 9 - 'build(1, Protoss Nexus, 150)'
Write 'xd' after 'Nexus' and 'adadad' before 'Protoss'
Ctrl+z a few times
You are left with 'build(1, adadarotos xd, 150)'
If you continue to ctrl+z, the entire script is erased.




Jul 18 2017, 4:44 pm Pr0nogo Post #247



Editing these files with PyDAT is resulting in bizarre changes to the flingy.dat, where Scourge's flingy entry is being set to seemingly random entries. First it was Rhynadon, then it was Power Generator. I've hit 'reload entry' to fix it but there's no telling how long before it happens again. Worth noting is that those two graphic entries are ones that I've replaced in the mpq/exe, but I don't know if that helps figure out the issue.




Jul 18 2017, 10:59 pm poiuy_qwert Post #248

PyMS and ProTRG developer

Quote from Pr0nogo
Open 'Brood Wars Terran 5 - Town A' in this script
Click on line 9 - 'build(1, Protoss Nexus, 150)'
Write 'xd' after 'Nexus' and 'adadad' before 'Protoss'
Ctrl+z a few times
You are left with 'build(1, adadarotos xd, 150)'
If you continue to ctrl+z, the entire script is erased.
I am able to reproduce the issue, I'll see what I can do.

Quote from Pr0nogo
Editing these files with PyDAT is resulting in bizarre changes to the flingy.dat, where Scourge's flingy entry is being set to seemingly random entries. First it was Rhynadon, then it was Power Generator. I've hit 'reload entry' to fix it but there's no telling how long before it happens again. Worth noting is that those two graphic entries are ones that I've replaced in the mpq/exe, but I don't know if that helps figure out the issue.
This one is hard to reproduce. I seem to remember fixing something like this that Neiv reported... I have an idea that should get rid of these issues for good.

Thanks!




Jul 19 2017, 3:46 am Pr0nogo Post #249



I just encountered an issue with PyTBL where trying to use the search function hard freezes the program with no error message. Where would I go to get diagnostics to send to you?

On another note, that PyAI crash happened again. At first I thought it was related to defining a unit that didn't exist in unitdef.txt (can we get an update to that to include all hero units, special buildings, etc.?) but it happened occasionally even with out doing that. The files were nearly identical to what you were using for the ctrl+z test, though obviously they would have been different if it had saved successfully.




Jul 19 2017, 4:10 am poiuy_qwert Post #250

PyMS and ProTRG developer

Quote from poiuy_qwert
Quote from Pr0nogo
Open 'Brood Wars Terran 5 - Town A' in this script
Click on line 9 - 'build(1, Protoss Nexus, 150)'
Write 'xd' after 'Nexus' and 'adadad' before 'Protoss'
Ctrl+z a few times
You are left with 'build(1, adadarotos xd, 150)'
If you continue to ctrl+z, the entire script is erased.
I am able to reproduce the issue, I'll see what I can do.
This should be fixed now.

Quote from Pr0nogo
I just encountered an issue with PyTBL where trying to use the search function hard freezes the program with no error message. Where would I go to get diagnostics to send to you?
If no error dialog appears and there is nothing in the Logs folder, then the only thing you can do is try and reproduce the issue and/or give me detailed steps to reproduce it myself.

Quote from Pr0nogo
On another note, that PyAI crash happened again. At first I thought it was related to defining a unit that didn't exist in unitdef.txt (can we get an update to that to include all hero units, special buildings, etc.?) but it happened occasionally even with out doing that. The files were nearly identical to what you were using for the ctrl+z test, though obviously they would have been different if it had saved successfully.
If you can give me an aiscript.bin, bwscript.bin, and a script.txt which will reproduce the issue everytime I import it into them, I'll be able to look into the issue. Until I can reproduce it I'll poke around but i'm just fumblng in the dark and probably wont be able to figure it out :(
Also, was your bwscript.bin corrupted again this time or was it left alone?

Thanks!

Post has been edited 1 time(s), last time on Jul 19 2017, 4:16 am by poiuy_qwert.




Jul 19 2017, 4:14 am Pr0nogo Post #251



bwscript.bin was corrupted, so I imagine it wouldn't have been too useful. I'm not sure what a feasible testing operation would be since it doesn't seem consistent with any specific action I'm doing, but in case it happens again I'll try to keep backups and remember exactly what I did last, saving after each script change.




Jul 19 2017, 4:22 am poiuy_qwert Post #252

PyMS and ProTRG developer

Quote from Pr0nogo
bwscript.bin was corrupted, so I imagine it wouldn't have been too useful.
It was corrupted again? Are you updated to at least PyMS 1.3.6, the file corruption should be fixed on that version+, if not i'll have to look into that again too...

Quote from Pr0nogo
I'm not sure what a feasible testing operation would be since it doesn't seem consistent with any specific action I'm doing, but in case it happens again I'll try to keep backups and remember exactly what I did last, saving after each script change.
Yeah thats probably your best bet. Maybe I can make a special version for you that will backup those things automatically on a crash, I'll look into that.




Jul 19 2017, 4:25 am Pr0nogo Post #253



It says PyAI v2.5.1 on my end, the version I've been using all day (and the version it crashed with). It never prompted me for an update so I assume this is the latest version?




Jul 19 2017, 4:29 am poiuy_qwert Post #254

PyMS and ProTRG developer

Quote from Pr0nogo
It says PyAI v2.5.1 on my end, the version I've been using all day (and the version it crashed with). It never prompted me for an update so I assume this is the latest version?
Yeah that should have had the fix :( I'll look at it again.




Jul 19 2017, 4:31 am Pr0nogo Post #255



If I encounter it again I will let you know and do my best to remember to save at every turn as mentioned before. Thanks for looking into it again. This program is why I'm able to make incredibly complex AI.




Jul 20 2017, 12:00 am poiuy_qwert Post #256

PyMS and ProTRG developer

Quote from poiuy_qwert
Quote from Pr0nogo
bwscript.bin was corrupted, so I imagine it wouldn't have been too useful.
It was corrupted again? Are you updated to at least PyMS 1.3.6, the file corruption should be fixed on that version+, if not i'll have to look into that again too...
Quote from poiuy_qwert
Quote from Pr0nogo
It says PyAI v2.5.1 on my end, the version I've been using all day (and the version it crashed with). It never prompted me for an update so I assume this is the latest version?
Yeah that should have had the fix :( I'll look at it again.
I can not reproduce the file corruption. I have force it to crash during save, even in the same way as your original crash log, and the atomic writing works in keeping the original file safe. Are you sure the second crash was the same as the first one?




Jul 20 2017, 12:10 am Pr0nogo Post #257



I didn't cross refernece the crashdumps but it also hasn't occurred yet with the latest version of PyAI, so maybe it has in fact been fixed and I just didn't update before.




Jul 20 2017, 4:55 am Corbo Post #258

ALL PRAISE YOUR SUPREME LORD CORBO

How about adding a "Open SC Tileset" button into PyTILE? What this button would do is open vanilla/bw tilesets, it should list them to you. This would make it far much simpler than having to extract the tilesets yourself. Either load from MPQ or have them come along wih PyMS



fuck you all

Jul 20 2017, 7:13 am Pr0nogo Post #259



Internal error (no crash) in PyTILE when attempting to add these bitmaps to this tileset. I tried to do it one at a time, and after the error popped up, hitting the magnifying glass icon to look for the bitmaps again did nothing.




Jul 20 2017, 4:50 pm poiuy_qwert Post #260

PyMS and ProTRG developer

Quote from Corbo
How about adding a "Open SC Tileset" button into PyTILE? What this button would do is open vanilla/bw tilesets, it should list them to you. This would make it far much simpler than having to extract the tilesets yourself. Either load from MPQ or have them come along wih PyMS
Sounds like a good idea, I'll look into it.

Quote from Pr0nogo
Internal error (no crash) in PyTILE when attempting to add these bitmaps to this tileset. I tried to do it one at a time, and after the error popped up, hitting the magnifying glass icon to look for the bitmaps again did nothing.
Hmm, not sure how that bug snuck in there. I'll fix it when I get home, if you want to you can fix it yourself until then by removing ", graphics" from this line so it is just "def select_path(self):"




Options
Pages: < 1 11 12 13 14 1523 >
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[11:46 pm]
O)FaRTy1billion[MM] -- firegraft is for making mods for starcraft, if you're trying to do stuff like that for a single map then EUD Editor is probably what you are looking for
[11:45 pm]
O)FaRTy1billion[MM] -- fusiongtxo0
fusiongtxo0 shouted: my computer says the download of firegraft has a virus
ya, for some reason AVs like to say it's some infected browser extension or something
[05:37 pm]
fusiongtxo0 -- like in gods tower defense
[05:37 pm]
fusiongtxo0 -- will firegraft allow me to make a tiger able to attack
[05:11 pm]
NudeRaider -- that's normal for modding tools. All it means is that your virus scanner hasn't seen the file often.
[04:56 pm]
fusiongtxo0 -- this is bullshit lol
[04:56 pm]
fusiongtxo0 -- my computer says the download of firegraft has a virus
[04:42 pm]
fusiongtxo0 -- so can you guys answer my question in ums assistance for sc1
[2022-1-20. : 2:57 am]
Ahli -- KrayZee
KrayZee shouted: When Kotick leaves, I'd say this.
too bad that he will leave with an additional f*ckton of money after the acquisition will be completed :(
[2022-1-20. : 12:41 am]
KrayZee -- When Kotick leaves, I'd say this.
Please log in to shout.


Members Online: RdeRenato, Voyager7456, jun3hong