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 20 21 22
 

Nov 3 2017, 12:08 am Pr0nogo Post #421



PyAI: How would we go about adding new commands into PyAI's logic, if we had the technology to add them into the game with a plugin?




Nov 6 2017, 8:20 am Pr0nogo Post #422



PyDAT:
Under units -> AI, 'Sounds' is listed in the box that encases the fields.



Under orders, changing the 'highlight' field will not update the displayed icon unless you click off and back on to the entry you edited.

PyTBL:
I may have requested it before, but can we get a search box on the bottom left, similar to PyDAT? Would be much easier to access than the find function, and you could still keep the find function for settings (like `case sensitive`, `wrap`, and so on).

Speaking of which, does `case sensitive` even do anything? If I type in `ion cannon` without it ticked, it still doesn't send me to the Ion Cannon entry because of capitalization.

Post has been edited 1 time(s), last time on Nov 7 2017, 2:26 am by Pr0nogo.




Nov 12 2017, 1:39 pm Pr0nogo Post #423



PyDAT: When set to small window sizes, a lot of data fields are obscured with no scroll bar present to indicate that more data exists. Possibly true of other PyMS programs.




Nov 23 2017, 1:47 pm Pr0nogo Post #424



Doesn't look like PyLO works anymore. Throws this error whenever I try to open any files.

Code
Exception in Tkinter callback
Traceback (most recent call last):
 File "C:\Python27\lib\lib-tk\Tkinter.py", line 1532, in __call__
   return self.func(*args)
 File "C:\Users\Darion\Desktop\Libraries\Tools\SCBW\PyMS-master\PyLO.pyw", line 871, in open
   self.updatescroll()
 File "C:\Users\Darion\Desktop\Libraries\Tools\SCBW\PyMS-master\PyLO.pyw", line 672, in updatescroll
   frames = float(self.overlaygrp.frames-1)
AttributeError: 'NoneType' object has no attribute 'frames'


edit: redownloading fixed this issue??? no idea why

Post has been edited 1 time(s), last time on Nov 24 2017, 12:16 am by Pr0nogo.




Dec 2 2017, 8:52 pm poiuy_qwert Post #425

PyMS and ProTRG developer

I'm going to start this by saying sorry for not responding in a long time. I got busy, and then put on a new project at work which has destroyed any motivation to do technical things when I get home. It's getting better, so I might have the motivation to put in some work soon. For now I'm still collecting the issues as tickets on github.


Quote from Nekron
Well, I guess it does present an error, it doesn't "crash" as in "closes immediately with no notice", but it still closes after you okay away the error when it (I would think) doesn't have to

I figure you know what the error would be, i'll include it here anyway just in case https://pastebin.com/raw/XLbQMt17
That is a "crash", I just capture it to provide the traceback and then attempt to continue the program if possible, though in this case the app is too unstable to continue so it closes. I thought I had fixed this crash, but I don't know if I'll be able to figure it out without getting on a windows machine and debugging it.


Quote from Nekron
it's more than enough if you just implement the force values into PyDAT, PyMS is not too resource intensive anyway so I can afford to have both PyAI and PyDAT open at once xD
Sorry this didn't make it in before I got busy, I hope it will be the first feature once I get around to fixing any critical bugs I can.


Quote from Nekron
Thanks for fixing the tooltips!
Np, glad its fixed (thanks Neiv for helping pinpoint the commit that introduced the issue!)


Quote from Nekron
https://pastebin.com/raw/J7b4iBFU trying to save a bwscript with this script in crashes PyAI with the following error message

Error

the script is probably fucked, but well, I assume that crashing shouldn't be the correct answer anyway, especially if the editor lets me save it
Unfortunately I left this too long and the pastebin link has expired (you should be able to choose an unlimited expiry next time if you don't mind, just in case :P) I assume you probably don't have the script anymore? Also I think you missed the last line of the error traceback which should include the actual error itself, so I don't think I can do much.


Quote from Nekron
edit: now I literally can't save anything LMAO/works after redownloading
Hmm, that seems very odd. Well probably too late to investigate :( At least its working for you now


Quote from Nekron
This warning should not show up - if the AI owns at least 2 expansions + random_jump will not fire (1/2 chance) the command will be executed. I don't understand why it wouldn't, anyway.
Yep, I'll look into it, thanks! (ticket)


Quote from Corbo
PyGRP:
When shift + clicking a frame groups, when importing them frames, the last frame you click (supposedly the very last frame) it ends up being frame 0 in PyGRP

EDIT: happens regardless of how I select my range of frames
Quote from Pr0nogo
Selecting frames from last to first solved the issue for me, though obviously it isn't very intuitive.
Quote from Corbo
That is undesired behaviour, though, as it is still an issue and that is just a temporary bodge. But thanks.

In my case I just deleted and reimported the frame.
It seems like there is no guarantee of the ordering of the files returned to me on different OS's and OS versions, so I'll probably need to sort them to ensure a specific ordering. (ticket)


Quote from Corbo
PyGRP:
while pressing "home" keyboard key does take you to frame 0, pressing "end" keyboard key takes you to the frame before last
Thanks, will look into it (ticket)


Quote from Pr0nogo
PyAI: How would we go about adding new commands into PyAI's logic, if we had the technology to add them into the game with a plugin?
Its not very intuitive. I wish I had made things more data driven so its easier to tweak without changing the code (or even coded it better :P), and I may look into updating some stuff for that (ticket). Here is a basic outline:

In Libs/AIBIN.py:
1) Add a "descriptive name" to the `labels` list
2) Add a "short name" to the `short_labels`
3) Add its list of parameters to the `parameters`
You must ensure that the names and parameters are at the same index in all 3 lists

In PyAI.pyw:
Add the tooltip help to a section in the `cmds`

This might not be complete, but I can help once/if someone actually does it.


Quote from Pr0nogo
PyDAT:
Under units -> AI, 'Sounds' is listed in the box that encases the fields.

Hmm I thought I fixed that. Thanks, will look into it (ticket)


Quote from Pr0nogo
PyDAT:
Under orders, changing the 'highlight' field will not update the displayed icon unless you click off and back on to the entry you edited.
Will look into it (ticket)


Quote from Pr0nogo
PyTBL:
I may have requested it before, but can we get a search box on the bottom left, similar to PyDAT? Would be much easier to access than the find function, and you could still keep the find function for settings (like `case sensitive`, `wrap`, and so on).
Yeah I can do that (ticket)


Quote from Pr0nogo
Speaking of which, does `case sensitive` even do anything? If I type in `ion cannon` without it ticked, it still doesn't send me to the Ion Cannon entry because of capitalization.
I'll have to look into it (ticket)


Quote from Pr0nogo
PyDAT: When set to small window sizes, a lot of data fields are obscured with no scroll bar present to indicate that more data exists. Possibly true of other PyMS programs.
Yeah I think PyDAT is the biggest offender, so I'll look into it (ticket). If you have the same issue with other programs just report em!


Quote from Pr0nogo
Doesn't look like PyLO works anymore. Throws this error whenever I try to open any files.

Code
Exception in Tkinter callback
Traceback (most recent call last):
 File "C:\Python27\lib\lib-tk\Tkinter.py", line 1532, in __call__
   return self.func(*args)
 File "C:\Users\Darion\Desktop\Libraries\Tools\SCBW\PyMS-master\PyLO.pyw", line 871, in open
   self.updatescroll()
 File "C:\Users\Darion\Desktop\Libraries\Tools\SCBW\PyMS-master\PyLO.pyw", line 672, in updatescroll
   frames = float(self.overlaygrp.frames-1)
AttributeError: 'NoneType' object has no attribute 'frames'


edit: redownloading fixed this issue??? no idea why
This was an issue trying to show the preview, but for some reason it didn't have the overlay grp properly loaded. I'll look into it (ticket). If it happens again, you can remove PyLO.txt from Settings or edit one of the overlay settings to fix it without needing a redownload.


Thanks for the reports guys, keep em coming, I'll get to them when I can!




Dec 3 2017, 3:26 am Pr0nogo Post #426



Congrats on your resurrection! Glad to see you'll be working on PyMS again. Holiday season is crazy enough without your work life making it even more stressful, so I hope that comes to a close for you soon.

I had a few thoughts as to how some programs could be updated but of course I never wrote any of them down. I'll try and compile a short list and get back to you on that.

I had an issue earlier today where unused blocks caused StarCraft to freeze after the AI was run. Removing the unused blocks or reactivating them solved the issue, but as far as I'm aware the code should just never be called if there is no command to do so. Any idea if this is a PyAI issue? If you need me to test it more, just let me know what steps I should take.




Dec 3 2017, 10:27 am Nekron Post #427



Quote from poiuy_qwert
Quote from Nekron
Quote from Nekron
This warning should not show up - if the AI owns at least 2 expansions + random_jump will not fire (1/2 chance) the command will be executed. I don't understand why it wouldn't, anyway.
Yep, I'll look into it, thanks! (ticket)

It might not jump properly because apparently try_townpoint sometimes malfunctions without expansion commands? Couldn't confirm it, but it was mentioned in some SCAI thread I found. Not sure if PyAI should be able to find out whether it malfunctions anyway, though, so it's not really relevant :V

The script that crashes is here, I still have it - https://pastebin.com/raw/rayHqUWM
Edit: and the used unitdef.txt is here - https://pastebin.com/raw/FtdpepgA
It's set never to expire now.

Only the Chain/Return part of the script seem to crash/corrupt(?) PyAI? I extracted everything used by Slay into a separate script and it worked fine. (chain/returntoc/slay = labels used by the three jumps below "multirun upgrades")
I'm too tired now to look through the script again, so I'm really sorry if it's some obvious mistake I missed previously! ><

Quote from Pr0nogo
I had an issue earlier today where unused blocks caused StarCraft to freeze after the AI was run. Removing the unused blocks or reactivating them solved the issue, but as far as I'm aware the code should just never be called if there is no command to do so. Any idea if this is a PyAI issue? If you need me to test it more, just let me know what steps I should take.
Really weird. Doesn't seem to be the case for me, had multiple unused blocks leftover in the past. Can you try using the label, but just making it completely functionally unreachable (such as with some impossible to fill enemyowns_jump)?

Blizzard theoretically uses two scripts with normally unreachable blocks for xZ6, and they obviously don't seem to crash/freeze anything, though with how good Z6 scripts are I wouldn't be surprised if they actually do freeze sometimes :^)

Post has been edited 3 time(s), last time on Dec 3 2017, 11:09 am by Nekron.




Dec 3 2017, 8:20 pm Pr0nogo Post #428



Quote from Nekron
Really weird. Doesn't seem to be the case for me, had multiple unused blocks leftover in the past. Can you try using the label, but just making it completely functionally unreachable (such as with some impossible to fill enemyowns_jump)?

Original script reconstructed (only difference from the original is the attack_to coordinates and attack_add counts/types): https://pastebin.com/raw/AaEv6cXn
This script froze the game within 5 seconds of activating. Removing `emitter1` and `emitter6` blocks resolved the issue.

I don't have time to check your request right now so I'll just look into it later.




Dec 3 2017, 11:27 pm Nekron Post #429



Yeah, it does indeed either crash the game (try copy-pasting the last block in PB3A, with a different blockname, but delete the goto -> gamecrash) or freeze it (such as in your case); the workaround I presented also doesn't work. Seems pretty weird, historically I had quite a few scripts that have unused blocks leftover back from the SCAI days I'm pretty sure. Too lazy to find concretes right now, it's unlikely I'll search through everything before xmas but once I do I'll make sure to pop in




Dec 18 2017, 2:23 pm Pr0nogo Post #430



What's up with this error? Does PyMPQ not support extracting files from old SEMPQs?

Code
Exception in Tkinter callback
Traceback (most recent call last):
 File "C:\Python27\lib\lib-tk\Tkinter.py", line 1537, in __call__
   return self.func(*args)
 File "C:\Users\prono\Desktop\Libraries\Tools\SCBW\PyMS-master\PyMPQ.pyw", line 1084, in extract
   r = SFileReadFile(fh)
 File "C:\Users\prono\Desktop\Libraries\Tools\SCBW\PyMS-master\Libs\SFmpq.py", line 379, in SFileReadFile
   if _SFmpq.SFileReadFile(file, byref(data, total_read), read-total_read, byref(r), None):
WindowsError: exception: access violation reading 0xFFFFFFFFF7F857DF





Dec 20 2017, 6:15 am Pr0nogo Post #431



Where are the registry entries for opening .mpq files (and the other ones)? I've tried setting file associations on a fresh install of win10 and it worked initially, but after setting it to winmpq, I can't set it back to pympq.




Jan 3 2018, 12:35 am Freakling Post #432

*sluuuuuuuuuuuuuuuuuurp!* Melee Map Maker

Trying to use PyMPQ gives me a dependency error:
"PyMS has currently no Mac support for MPQ files, thus this program is useless. If you are a Mac user and can help compile and test SFmpq then please Contact me!"
I don't think I can help you, though (using Ubuntu Linux, with BW v. 1.16 via Wine).



None.

Jan 11 2018, 10:41 pm Voyager7456 Post #433

Responsible for my own happiness? I can't even be responsible for my own breakfast

There doesn't appear to be a way to change the overlay frame in PyLO - either that or I'm completely missing it.

EDIT: While we're at it, it would be nice to be able to select the palette used for the overlay as well.

Post has been edited 1 time(s), last time on Jan 11 2018, 11:45 pm by Voyager7456.



"They used to say if man could fly, he'd have wings... but he did fly.

He discovered he had to."


Modding Resources: The Necromodicon [WIP] | Mod Night
My Projects: SCFC | ARAI | Excision [WIP] | SCFC2 [BETA]


Options
Pages: < 1 20 21 22
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[02:52 am]
Psychic_Genius -- Music started by trigger. Oh ok, I see, thanks :)
[02:51 am]
Dem0n -- The only way to stop music played through triggers is to cut it up into small intervals and then not playing the next interval whenever you want to stop it.
[02:51 am]
Dem0n -- SC music or music started by a trigger?
[02:49 am]
Psychic_Genius -- Hello all. Hey I have a question, how do you stop music on a map? is there a trigger for it or something? like to mute sound or whatever?
[08:22 pm]
lil-Inferno -- mad
[08:03 pm]
thekian -- Aw man, Hydra is only compatible with 1.20 or higher.
[2018-2-19. : 10:08 pm]
jjf28 -- Neiver
[2018-2-19. : 10:08 am]
Pr0nogo -- meant to be a whisper but w/e
[2018-2-19. : 10:08 am]
Pr0nogo -- yeah there's never enough hours in the day
[2018-2-19. : 4:21 am]
jjf28 -- https://youtu.be/O3i18cxxmFk
Please log in to shout.


Members Online: Roy, Lanthanide, Mini Moose 2707, RIVE