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.
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/XLbQMt17That 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.
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.
Thanks for fixing the tooltips!
Np, glad its fixed (thanks Neiv for helping pinpoint the commit that introduced the issue!)
https://pastebin.com/raw/J7b4iBFU trying to save a bwscript with this script in crashes PyAI with the following error message
Error
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 "E:\Scripts\working\PyMS-master\PyAI.pyw", line 2814, in saveas
if self.save(ai=aiscript, bw=bwscript):
File "E:\Scripts\working\PyMS-master\PyAI.pyw", line 2795, in save
self.ai.compile(ai, bw)
File "E:\Scripts\working\PyMS-master\Libs\AIBIN.py", line 1829, in compile
self.bwscript.compile(bwscript, extra)
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
) 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.
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
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)
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
Selecting frames from last to first solved the issue for me, though obviously it isn't very intuitive.
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)
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)
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
), 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.
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)
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)
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)
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)
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!
Doesn't look like PyLO works anymore. Throws this error whenever I try to open any files.
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!