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 « 18 19 20 21 2223 >
 

Aug 19 2017, 3:14 pm Neiv Post #381



Loading any (1.16) .bin file with crashes PyBIN:
Quote
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\ohjelmia\Python27\lib\lib-tk\Tkinter.py", line 1542, in __call__
return self.func(*args)
File "pybin.pyw", line 2272, in open
self.reload_canvas()
File "pybin.pyw", line 1943, in reload_canvas
reorder = node.update_display() or reorder
File "pybin.pyw", line 1270, in update_display
reorder = self.update_dialog() or reorder
File "pybin.pyw", line 943, in update_dialog
left = self.toplevel.dialog_asset(DialogBIN.DIALOG_ASSET_BUTTON_MID_LEFT)
File "pybin.pyw", line 1729, in dialog_asset
if self.dlggrp and self.background:
File "C:\ohjelmia\Python27\lib\lib-tk\Tkinter.py", line 1904, in __getattr__
return getattr(self.tk, attr)
AttributeError: background

And once PyBIN works for 1.16 bin files, would be neat to have support for 1.20 ones as well. They have had some format changes, not sure about all of them. Some flags seem to have changed and there are new 2 bytes (padding? not sure) around offset 0x20 for all controls, so anything after that is offset by 2 bytes from the 1.16 format.



None.

Aug 20 2017, 3:08 pm poiuy_qwert Post #382

PyMS and ProTRG developer

Quote from Neiv
Loading any (1.16) .bin file with crashes PyBIN
Should be fixed (was an issue trying to preview without the background being loaded). I also updated the main UI to be fully resizable and fixed some other issues. Does double-click to edit work for you in the widget list or the canvas?

Quote from Neiv
And once PyBIN works for 1.16 bin files, would be neat to have support for 1.20 ones as well. They have had some format changes, not sure about all of them. Some flags seem to have changed and there are new 2 bytes (padding? not sure) around offset 0x20 for all controls, so anything after that is offset by 2 bytes from the 1.16 format.
I don't really have any plans to support the new file types, but if you document all the changes and people keep pestering me for it I might do it. Though I also wouldn't be able to fully support the new HTML widget or video files.




Aug 23 2017, 4:20 am Pr0nogo Post #383



I had another fatal error occur in PyMPQ after trying to add files to an mpq while SCMDraft was reading data from it. Didn't grab a dump this time though, and there's nothing in Libs -> Logs. If I can replicate it later I'll post more details, but I figured you should know.




Aug 23 2017, 6:56 pm Pr0nogo Post #384



PyAI: Longstanding issue on windows where after saving a script, pressing `Yes` on the confirmation, and closing the entry, the main window resets to the very top of the script list instead of remaining where you were. I kept forgetting to report this, but hopefully it's an easy fix.




Aug 24 2017, 8:32 am Pr0nogo Post #385



PyICE Bug: The undo bug reported several pages back for PyAI seems to be present in PyICE as well.

PyTBL: Any chance we can get an entry previewer to see what it will look like in-game? Something below what we type, maybe similar to the preview seen in FireGraft.
Bug: after using save as, the file path at the top of the program is inaccurate (still shows the original file loaded before saving as).




Aug 24 2017, 1:51 pm poiuy_qwert Post #386

PyMS and ProTRG developer

Quote from Pr0nogo
I had another fatal error occur in PyMPQ after trying to add files to an mpq while SCMDraft was reading data from it. Didn't grab a dump this time though, and there's nothing in Libs -> Logs. If I can replicate it later I'll post more details, but I figured you should know.
:( Could you try going into Libs\SFmpq.py and changing DEBUG to equal True at line 298. If it doesn't introduce any lag, you could leave that enabled until you get the crash again, then hopefully there will be some extra info in the logs that will help me debug it.

Quote from Pr0nogo
PyAI: Longstanding issue on windows where after saving a script, pressing `Yes` on the confirmation, and closing the entry, the main window resets to the very top of the script list instead of remaining where you were. I kept forgetting to report this, but hopefully it's an easy fix.
Noted.

Quote from Pr0nogo
PyICE Bug: The undo bug reported several pages back for PyAI seems to be present in PyICE as well.
Hmmm, the fixes I made before should have applied to all code editors. You will need to provide me with detailed steps to reproduce the issue like before, or just confirmation that the same steps from before will reproduce it.

Quote from Pr0nogo
PyTBL: Any chance we can get an entry previewer to see what it will look like in-game? Something below what we type, maybe similar to the preview seen in FireGraft.
There is already a previewer, its the checkmark button, or Ctrl+T. PyTBL is one of the oldest UI's, so it is very basic compared to the newer apps. I already have plans to revamp PyTBL, but any additional ideas are welcome.

Quote from Pr0nogo
Bug: after using save as, the file path at the top of the program is inaccurate (still shows the original file loaded before saving as).
Noted.


Thanks!




Aug 24 2017, 1:59 pm Pr0nogo Post #387



Quote from poiuy_qwert
Could you try going into Libs\SFmpq.py and changing DEBUG to equal True at line 298. If it doesn't introduce any lag, you could leave that enabled until you get the crash again, then hopefully there will be some extra info in the logs that will help me debug it.
Ok, will do.

Quote from poiuy_qwert
Hmmm, the fixes I made before should have applied to all code editors. You will need to provide me with detailed steps to reproduce the issue like before, or just confirmation that the same steps from before will reproduce it.
Yeah, looks like a false alarm. After a few copy pastes and such, pressing ctrl+z a bunch of times will occasionally just wipe the entire script window, but pressing ctrl+z again restores it (as far as I can tell).

Quote from poiuy_qwert
There is already a previewer, its the checkmark button, or Ctrl+T. PyTBL is one of the oldest UI's, so it is very basic compared to the newer apps. I already have plans to revamp PyTBL, but any additional ideas are welcome.
Building the previewer into the main window a la firegraft would be super ideal. Otherwise I have no specific suggestions as of right now.




Aug 26 2017, 4:38 pm Pr0nogo Post #388



PyAI: The script will be corrupted if you use create_unit with a coordinate outside the maximum map bounds. ~8192 is the highest coordinate for both width and height, so maybe don't allow users to save if a coordinate goes over that number.

PyMPQ: Here's the crashlog I mentioned earlier. Happens when SCMDraft is holding onto the mpq that is being edited in PyMPQ.




Aug 26 2017, 9:06 pm poiuy_qwert Post #389

PyMS and ProTRG developer

Quote from Pr0nogo
PyAI: The script will be corrupted if you use create_unit with a coordinate outside the maximum map bounds. ~8192 is the highest coordinate for both width and height, so maybe don't allow users to save if a coordinate goes over that number.
What do you mean "the script will be corrupted"? I assume you mean the script compiles/decompiles fine (not corrupted), but starcraft crashes when it tries to create the unit? For me to be able to add checks for this I will need someone to be able to figure out some things:
What is the exact valid range of coordinates? Does the map size matter? Like can you spawn a unit at 4096,4096 on a 256x256 map but it crashes on a 64x64 map?
Maybe we can get Neiv to look at the actual implementation?

Quote from Pr0nogo
PyMPQ: Here's the crashlog I mentioned earlier. Happens when SCMDraft is holding onto the mpq that is being edited in PyMPQ.
Yeah its the same crash. Was DEBUG enabled in SFmpq when that log was created? If so it doesn't look like the debug info is coming through, so I still don't really know what is going on :( If you are able to reproduce the crash, maybe you can edit Libs\trace.py so STDOUT_FSYNC = True on line 11. It will make the programs lag while writing the debug info to the log, but it should ensure the SFmpq DEBUG logs are written during your test. Then you can disable it once you are done the test.




Aug 27 2017, 3:21 pm Pr0nogo Post #390



Quote from poiuy_qwert
What do you mean "the script will be corrupted"?
The actual ramifications of the corruption are incredibly bizarre. Specifically, the script was called to `create_unit(Mineral Field Type 1)` at invalid coordinates. I used a modified unitdef.txt, and using `create_unit(Mineral Field #)` worked fine in other instances. After saving the script, I noticed "an unable to create unit" error in the map, so I fixed this and saved. However, a mineral field failed to spawn regardless of the coordinates (or even if there were any `create_unit(Mineral Field #)` calls in the script - and no other scripts or triggers existed that would be spawning them; I checked several times). The fix was to paste an old copy of the script and write in the `create_unit` calls with accurate coordinates.

Quote from poiuy_qwert
Was DEBUG enabled in SFmpq when that log was created?
No, I forgot that, but since it's 100% reproduceable I was able to turn it on and then make it crash again. Crashlog

Let me know if you need me to do that extra step.




Aug 30 2017, 3:17 am poiuy_qwert Post #391

PyMS and ProTRG developer

Quote from Pr0nogo
Quote from poiuy_qwert
What do you mean "the script will be corrupted"?
The actual ramifications of the corruption are incredibly bizarre. Specifically, the script was called to `create_unit(Mineral Field Type 1)` at invalid coordinates. I used a modified unitdef.txt, and using `create_unit(Mineral Field #)` worked fine in other instances. After saving the script, I noticed "an unable to create unit" error in the map, so I fixed this and saved. However, a mineral field failed to spawn regardless of the coordinates (or even if there were any `create_unit(Mineral Field #)` calls in the script - and no other scripts or triggers existed that would be spawning them; I checked several times). The fix was to paste an old copy of the script and write in the `create_unit` calls with accurate coordinates.
I'm still not really sure what you mean, or what the specific issue is. Is the issue that the mineral field isn't created, or that it was giving the "unable to create unit" error even after you had deleted the `create_unit" command from your script? Can you give me step by step instructions to reproduce the issue, with expected result and actual result on whichever steps they diverge?

Quote from Pr0nogo
Quote from poiuy_qwert
Was DEBUG enabled in SFmpq when that log was created?
No, I forgot that, but since it's 100% reproduceable I was able to turn it on and then make it crash again. Crashlog
I think I've fixed it! I've also updated the logging a little, so if you get the crash again, please give an updated log with SFmpq DEBUG on.

Thanks!




Aug 30 2017, 4:13 am Pr0nogo Post #392



Quote from poiuy_qwert
it was giving the "unable to create unit" error even after you had deleted the `create_unit" command from your script?
Yes.

Quote from poiuy_qwert
Can you give me step by step instructions to reproduce the issue, with expected result and actual result on whichever steps they diverge?
1. Use a unitdef with mineral fields listed (should work for any unit/structure though)
2. Call `create_unit` at invalid coordinates
3. Save changes, add it to a mod, call it in a map. Expected results: 'unable to create unit' error.
4. Remove `create_unit` call in script. Save changes, add to mod. Expected results: same as above.

Can't test these currently, but that's what happened to me.

Quote from poiuy_qwert
I think I've fixed it! I've also updated the logging a little, so if you get the crash again, please give an updated log with SFmpq DEBUG on.
Ok, will do. Thanks!




Sep 7 2017, 4:30 am Pr0nogo Post #393



Why is this happening? Trying to extract any file using PyMPQ does this. Is it related to what I changed for debugging a while back?

When attempting to open glucustm.bin with PyBIN, the program throws this error.

Since I can't check, is there any function in PyBIN that allows for the creation of new dropdown menus, similar to the game mode selection menu (where you choose UMS, melee, etc)?




Sep 7 2017, 7:29 pm poiuy_qwert Post #394

PyMS and ProTRG developer

Quote from Pr0nogo
Why is this happening? Trying to extract any file using PyMPQ does this. Is it related to what I changed for debugging a while back?
That is because it can't open the MPQ, it apparently just doesn't have an actually error message to properly be handled.

Quote from Pr0nogo
When attempting to open glucustm.bin with PyBIN, the program throws this error.
Its crashing when trying to preview some text, i'll have to investigate. Are you using any custom MPQ's or "Preview Settings" in the settings? Also if you would like to get around the issue temporarily, you could disable text previews.

Quote from Pr0nogo
Since I can't check, is there any function in PyBIN that allows for the creation of new dropdown menus, similar to the game mode selection menu (where you choose UMS, melee, etc)?
You can add widgets to BIN's, and one of the widget types is "combobox", but I'm not really sure how it works after that.




Sep 8 2017, 10:44 pm Pr0nogo Post #395



Quote from poiuy_qwert
Are you using any custom MPQ's or "Preview Settings" in the settings?
No. I had only just opened up the program for the first time. Double-checked and nothing is different from the standard.

PyTILE: Internal error when trying to export multiple groups at once.




Sep 9 2017, 12:18 pm Neiv Post #396



PyICE gives me this when decompiling a script
error




None.

Sep 9 2017, 5:23 pm poiuy_qwert Post #397

PyMS and ProTRG developer

Quote from poiuy_qwert
Quote from Pr0nogo
Why is this happening? Trying to extract any file using PyMPQ does this. Is it related to what I changed for debugging a while back?
That is because it can't open the MPQ, it apparently just doesn't have an actually error message to properly be handled.
It now shows user friendly error dialogs.

Quote from poiuy_qwert
Quote from Pr0nogo
When attempting to open glucustm.bin with PyBIN, the program throws this error.
Its crashing when trying to preview some text, i'll have to investigate. Are you using any custom MPQ's or "Preview Settings" in the settings? Also if you would like to get around the issue temporarily, you could disable text previews.
This is fixed.

Quote from Pr0nogo
PyTILE: Internal error when trying to export multiple groups at once.
I can't reproduce this. Can you give me detailed steps to reproduce it? How many groups did you export? Which groups did you export?

Quote from Neiv
PyICE gives me this when decompiling a script
error
That should be fixed. The command lines are definitely lacking in attention. If you find issues, or there is a program that doesn't have command line support, or the command line doesn't have the functionality you want, I would love to hear about it!

Thanks!




Sep 9 2017, 8:39 pm Pr0nogo Post #398



Quote from poiuy_qwert
Quote from Pr0nogo
PyTILE: Internal error when trying to export multiple groups at once.
I can't reproduce this. Can you give me detailed steps to reproduce it? How many groups did you export? Which groups did you export?
I opened this tileset and exported these cliff groups: 52 - 75, 84 - 111

edit: Any way to make SCMDraft read completely new isom groups? Sort of like how you can add doodads to the doodad layer. I'm working on high asphalt atm, and want to include high structure and maybe high mud as well.

Request: make pressing escape close currently-focused subwindow (e.g. group importer, group previewer in PyTILE)

Reminder/please prioritize? -- double-click/right-click to 'fill' minitile painter with the selected property, and hotkeys to semi-automate applying selected megatile's properties to all megatiles in group

Bug -> PyTILE: when scrolling through the main window, it scrolls the last selected drop-down menu as well, but it's only visual - i can still paint walkable/unwalkable flags even though it says 'minitile' or 'ramp' or etc

Bug -> PyTILE: if you've just saved, applying selected megatile's properties to all megatiles in group will not register as a change for the save indicator (it's still greyed out/out of focus)

Checking in: are you any closer to the overlay previewer for doodads in PyTILE? Can't remember if you had started this or not.

Post has been edited 3 time(s), last time on Sep 11 2017, 5:16 pm by Pr0nogo.




Sep 11 2017, 5:17 pm poiuy_qwert Post #399

PyMS and ProTRG developer

Quote from Pr0nogo
Quote from poiuy_qwert
Quote from Pr0nogo
PyTILE: Internal error when trying to export multiple groups at once.
I can't reproduce this. Can you give me detailed steps to reproduce it? How many groups did you export? Which groups did you export?
I opened this tileset and exported these cliff groups: 52 - 75, 84 - 111
FYI just sending the .cv5 is not enough, all the files are required for a tileset to be opened. I was able to reproduce the issue on the default badlands tileset though, since it turned out to just be an issue exporting more then 16 groups at once. I got annoyed very quickly shift clicking all the groups, so I updated the multi-select to do proper shift-click of ranges and cntrl-click for toggling individual rows.

Quote from Pr0nogo
edit: Any way to make SCMDraft read completely new isom groups? Sort of like how you can add doodads to the doodad layer. I'm working on high asphalt atm, and want to include high structure and maybe high mud as well.
I don't know anything about ISOM, there are very few people that do. The only person I know of who knows how it works is SI, he might be able to tell you how to get it working. Also if we can get SI to somehow document the way ISOM works, I might be able to improve the editing of the ISOM information.

Quote from Pr0nogo
Request: make pressing escape close currently-focused subwindow (e.g. group importer, group previewer in PyTILE)
Yeah I'm not sure why the escape key is not enabled by default. I'll need to do a little investigating to make sure there isn't a good reason, but its a simple 1 word change to enable it for all dialogs. You can do it yourself if you want to try it out before I investigate, just open up Libs/utils.py and change line 251 so that 'escape=True'.

Quote from Pr0nogo
Reminder/please prioritize? -- double-click/right-click to 'fill' minitile painter with the selected property, and hotkeys to semi-automate applying selected megatile's properties to all megatiles in group
Both are now done (Use right click for fill function).

Quote from Pr0nogo
Bug -> PyTILE: when scrolling through the main window, it scrolls the last selected drop-down menu as well, but it's only visual - i can still paint walkable/unwalkable flags even though it says 'minitile' or 'ramp' or etc
There is a lot of limitations in the UI framework I'm using, one of the biggest is in how event focus works. I don't really know if there is a good way to fix it, you will just have to make sure you pay attention to what has focus.

Quote from Pr0nogo
Bug -> PyTILE: if you've just saved, applying selected megatile's properties to all megatiles in group will not register as a change for the save indicator (it's still greyed out/out of focus)
Looks like Apply All never marked it as edited, fixed!

Quote from Pr0nogo
Checking in: are you any closer to the overlay previewer for doodads in PyTILE? Can't remember if you had started this or not.
This is a huge change that requires rewriting a lot of things. I have not started it, and it would probably take a while once I do, so don't hold your breath :(

Post has been edited 2 time(s), last time on Sep 11 2017, 6:48 pm by poiuy_qwert.




Sep 11 2017, 6:08 pm Pr0nogo Post #400



Quote from poiuy_qwert
FYI just sending the .cv5 is not enough, all the files are required for a tileset to be opened.
Ok, gotcha.

Quote from poiuy_qwert
I got annoyed very quickly shift clicking all the groups, so I updated the multi-select to do proper shift-click of ranges and cntrl-click for toggling individual rows.
:cube:

Quote from poiuy_qwert
The only person I know of who knows how it works is SI, he might be able to tell you how to get it working. Also if we can get SI to somehow document the way ISOM works, I might be able to improve the editing of the ISOM information.
I've sent him a PM, thanks!

Quote from poiuy_qwert
Yeah I'm not sure why the escape key is not enabled by default. I'll need to do a little investigating to make sure there isn't a good reason
I don't mind waiting for your official fix to come through, seeing as how it's such a minor inconvenience. Just thought I'd bring it up.




Options
Pages: < 1 « 18 19 20 21 2223 >
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:41 am]
v9bettel -- Nice
[01:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[10:11 pm]
Ultraviolet -- :P
[10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
[2024-4-17. : 1:53 am]
Vrael -- bet u'll ask for my minerals first and then just send me some lousy vespene gas instead
Please log in to shout.


Members Online: jun3hong, Roy