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 12 13 14 15 1623 >
 

Jul 20 2017, 5:53 pm Corbo Post #261

ALL PRAISE YOUR SUPREME LORD CORBO

This is all without testing functionality within SC. That means I have not actually tested putting anything inside SC, just the program itself.

Raw Revision Notes


GLHF

Post has been edited 1 time(s), last time on Jul 20 2017, 5:58 pm by Corbo.



fuck you all

Jul 21 2017, 3:29 am poiuy_qwert Post #262

PyMS and ProTRG developer

Quote from poiuy_qwert
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.
I have updated the data handling so hopefully this issue will no longer happen (and hopefully I didn't introduce any bugs :P)

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.
Fixed.

Quote from Corbo
This is all without testing functionality within SC. That means I have not actually tested putting anything inside SC, just the program itself.
Replies


Thanks!




Jul 21 2017, 3:55 am O)FaRTy1billion[MM] Post #263

👻 👾 👽 💪

Quote from poiuy_qwert
- Can we have a "Load BMP and Pallete it" functionality? Or a specialized tool that handles that for us. This is for new unexperienced users in modding that will have issues with palletes, not to mention difficulty acquiring a program that palletes properly.
Hmmm, I like this idea, but I'll have to think about this and do a little research.
Does this mean load a bmp with any palette, and have it convert each pixel to the platform (or otherwise specified) palette? If so, the most common method I'm aware of is to use dist = (rimg - rpal)^2 + (gimg - gpal)^2 + (bimg - bpal)^2, and assign the loaded pixel the palette index with the lowest dist. Note that there is no need to sqrt it, since sqrt is slow and if x > y then x^2 > y^2 too.



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Jul 21 2017, 4:08 am Corbo Post #264

ALL PRAISE YOUR SUPREME LORD CORBO

It means exactly what you just solved. There you go poiuy. You have no excuses now.



fuck you all

Jul 21 2017, 4:42 am Pr0nogo Post #265



Thanks for fixing those poiuy! Now I just have to yell at farty until he expands the tilesets LMAO




Jul 21 2017, 10:21 am Neiv Post #266



- Trying to save a script which refers to a nonexisting block (goto(nonexisting)) crashes PyAI.
- eval_harass takes a block as an argument.
- if_dif takes two bytes and a block (Though it's not really useful)
- easy_attack takes a byte and military (Not useful either)

Also would be nice if PyAI didn't require parentheses in the script like in iscript/scaiedit.



None.

Jul 22 2017, 3:32 am LoveLess Post #267

Let me show you how to hump without making love.

Hey pouiy, I am attemtping to use your modding suite, but even following all the steps it is not running any of the tools. It brings up a quick command prompt, then closes immediately and I get nothing.



None.

Jul 22 2017, 4:20 am poiuy_qwert Post #268

PyMS and ProTRG developer

Quote from Pr0nogo
Crashdump from PyAI after attempting to save.
Quote from Neiv
- Trying to save a script which refers to a nonexisting block (goto(nonexisting)) crashes PyAI.
These were the same issues, and it is fixed now, thanks!

Quote from Neiv
- eval_harass takes a block as an argument.
- if_dif takes two bytes and a block (Though it's not really useful)
- easy_attack takes a byte and military (Not useful either)
I have updated these commands, including new tooltips based on information from the Defining AI commands and functions thread (planning to go over the rest of the thread at some point as well)

Quote from Neiv
Also would be nice if PyAI didn't require parentheses in the script like in iscript/scaiedit.
I don't really have any plans to change this, but I'm not necessarily against it.

Quote from LoveLess
Hey pouiy, I am attemtping to use your modding suite, but even following all the steps it is not running any of the tools. It brings up a quick command prompt, then closes immediately and I get nothing.
What steps did you try following? Also if you check in Libs\Logs\ there might be a crash log.


Also, I have started using github issues. I will use it for issues and feedback that I don't implement right away, as well as my long term goals/plans. So you can take a look to see what might be coming down the pipeline.

Edit: PyTILE now supports expanded VX4 files used by FaRTy's VX4 Expander Plugin

Post has been edited 2 time(s), last time on Jul 22 2017, 6:56 am by poiuy_qwert.




Jul 22 2017, 7:38 am Pr0nogo Post #269



Everything checks out so far with PyTILE + vx4ex. Looking good! Thanks to both of you for making this possible and to SI for opting to add functionality to SCMDraft.

Minor bug in PyGRP: hitting 'import BMP' and then 'cancel' throws an error message.



edit: Is there a set of instructions somewhere on how to use PyTILE to edit doodad data? I want to turn my custom tiles into doodads placeable in SCMDraft and I figure it should be possible but I haven't actually looked into it. Replacing existing doodads isn't great either. SCMD's brush palette that SI's working on makes it significantly easier to mess around with but it'd feel more organic and composed if it was able to be built into the doodad layer.

Post has been edited 1 time(s), last time on Jul 22 2017, 8:25 am by Pr0nogo.




Jul 22 2017, 3:52 pm LoveLess Post #270

Let me show you how to hump without making love.

Quote from poiuy_qwert
Quote from LoveLess
Hey pouiy, I am attemtping to use your modding suite, but even following all the steps it is not running any of the tools. It brings up a quick command prompt, then closes immediately and I get nothing.
What steps did you try following? Also if you check in Libs\Logs\ there might be a crash log.
I followed your instructions for installing, relayed to me by Pr0nogo. However Python was not showing in my library, so I downloaded the official installer from their website and then I was able to install the image library. Finally downloaded PyMS and it simply doesn't... Do anything.



None.

Jul 22 2017, 5:26 pm poiuy_qwert Post #271

PyMS and ProTRG developer

Quote from Pr0nogo
Everything checks out so far with PyTILE + vx4ex. Looking good! Thanks to both of you for making this possible and to SI for opting to add functionality to SCMDraft.
Great! I always wanted to see more tileset changes, so I'm glad to be able to improve the tileset editing process.

Quote from Pr0nogo
Minor bug in PyGRP: hitting 'import BMP' and then 'cancel' throws an error message.

Fixed.

Quote from Pr0nogo
edit: Is there a set of instructions somewhere on how to use PyTILE to edit doodad data? I want to turn my custom tiles into doodads placeable in SCMDraft and I figure it should be possible but I haven't actually looked into it. Replacing existing doodads isn't great either. SCMD's brush palette that SI's working on makes it significantly easier to mess around with but it'd feel more organic and composed if it was able to be built into the doodad layer.
Not really. Doodads are groups 1024+, so you just have to make sure you are editing those groups or adding groups at the bottom. Also, when you import your group graphics, if you don't select something to import onto, it will be added to the end as a doodad group. I don't really remember how the doodad editing works off the top of my head, or if it works well, so feedback is welcome!

Quote from LoveLess
Quote from poiuy_qwert
Quote from LoveLess
Hey pouiy, I am attemtping to use your modding suite, but even following all the steps it is not running any of the tools. It brings up a quick command prompt, then closes immediately and I get nothing.
What steps did you try following? Also if you check in Libs\Logs\ there might be a crash log.
I followed your instructions for installing, relayed to me by Pr0nogo. However Python was not showing in my library, so I downloaded the official installer from their website and then I was able to install the image library. Finally downloaded PyMS and it simply doesn't... Do anything.
I need more details. What are the exact steps you followed? It doesn't sound like you followed my steps here. Did you check in the Logs folder?




Jul 22 2017, 9:39 pm LoveLess Post #272

Let me show you how to hump without making love.

Quote from poiuy_qwert
I need more details. What are the exact steps you followed? It doesn't sound like you followed my steps here. Did you check in the Logs folder?

1. Install Python from their website.

2. Install PIL.

3. Downloaded PyMS.

4. Attempt to launch anything from PyMS, nothing happens.

5. Complain about it to poiuy_qwert

6. Double check my steps.

7. Complain about it to poiuy_qwert

8. Triple check my steps. Check for logs in all related paths.

9. Compile this list of my steps for poiuy_qwert

I am using Windows 10 x64 if that matters in the slightest. Logs folders was empty.



None.

Jul 22 2017, 9:40 pm Nekron Post #273



Prep_down should take 3 parameters, PyAI recognizes none (It should take byte, byte, military)
Same issue with harass_factor, takes none, should take (word) as parameter.
I'll go over all commands and see if there's anything more, will edit this post if there is




Jul 22 2017, 9:48 pm LoveLess Post #274

Let me show you how to hump without making love.

Quote from LoveLess
Quote from poiuy_qwert
I need more details. What are the exact steps you followed? It doesn't sound like you followed my steps here. Did you check in the Logs folder?

1. Install Python from their website.

2. Install PIL.

3. Downloaded PyMS.

4. Attempt to launch anything from PyMS, nothing happens.

5. Complain about it to poiuy_qwert

6. Double check my steps.

7. Complain about it to poiuy_qwert

8. Triple check my steps. Check for logs in all related paths.

9. Compile this list of my steps for poiuy_qwert

I am using Windows 10 x64 if that matters in the slightest. Logs folders was empty.
Looks like I solved the issue. Pronogo was giving me a bad file or something, because I uninstalled everything and re-downloaded all the necessary files myself via google. Everything works now.



None.

Jul 22 2017, 10:20 pm Pr0nogo Post #275



The issue was apparently a 64-bit OS not accepting 32-bit files (or maybe the other way around, which would make more sense, since 32bit stuff works fine on 64bit computers). I've updated the links in my manly thread.




Jul 22 2017, 11:30 pm Neiv Post #276



I think PyMS doesn't work on 64-bit python installation because the bundled SFmpq.dll is 32-bit.

I do have a 64-bit one here if anyone needs or if poiuy wishes to bundle it

Attachments:
SFmpq.dll
Hits: 2 Size: 956.08kb



None.

Jul 23 2017, 1:22 am poiuy_qwert Post #277

PyMS and ProTRG developer

Quote from Nekron
Prep_down should take 3 parameters, PyAI recognizes none (It should take byte, byte, military)
Same issue with harass_factor, takes none, should take (word) as parameter.
I'll go over all commands and see if there's anything more, will edit this post if there is
I have updated these commands. I didn't really find a description of what harass_factor does, so the tooltip is essentially just "does something related to unit strengths in a region". If you have more details I can update it. (Edit: Neiv posted details) Also I do have plans to go over the Defining AI commands and functions thread at some point, but if point out high priority items I will continue to update them. Also if there are other sources of AI information you can link to or know of stuff not written down, I would love to include it.

Quote from LoveLess
Looks like I solved the issue. Pronogo was giving me a bad file or something, because I uninstalled everything and re-downloaded all the necessary files myself via google. Everything works now.
Quote from Pr0nogo
The issue was apparently a 64-bit OS not accepting 32-bit files (or maybe the other way around, which would make more sense, since 32bit stuff works fine on 64bit computers). I've updated the links in my manly thread.
Alright. I was thinking that once I finally update the README on github, you could update your thread to just link to the installation instructions there? That way I can keep them up to date if there are any changes or fixes that have to be made.

Quote from Neiv
I think PyMS doesn't work on 64-bit python installation because the bundled SFmpq.dll is 32-bit.

I do have a 64-bit one here if anyone needs or if poiuy wishes to bundle it
Yeah MPQ functionality may not work for 64bit python, but it shouldn't have just crashed/not run like that. I think it might have been another issue, but i'll also look into my dependancy checks. I also dealt with this on Mac already. There are ways to force python to run in 32bit mode, so I had a command line alias to do that, but then I finally bundled both the 32bit and 64bit into the mac .dylib, but didn't really think about windows as well... I can look into bundling the 64bit .dll, I just wont be able to test it myself. Anyone willing and able to test that out at some point?

Post has been edited 2 time(s), last time on Jul 23 2017, 3:27 am by poiuy_qwert.




Jul 23 2017, 3:49 am LoveLess Post #278

Let me show you how to hump without making love.



When you save a GRP with PyGRP, you lose a pixel.



Garbage'd for visibility.



None.

Jul 23 2017, 4:14 am Pr0nogo Post #279



Quote from poiuy_qwert
I was thinking that once I finally update the README on github, you could update your thread to just link to the installation instructions there?
Yeah, absolutely. I'll drop a link there now anyways so I can preempt any initial issues, and leave a stipulation that if you have further problems you can come to this thread to report them to you directly.

Quote from poiuy_qwert
I can look into bundling the 64bit .dll, I just wont be able to test it myself. Anyone willing and able to test that out at some point?
Assuming the requirements are 'running a 64-bit windows', I can definitely give it a whirl, but it's worth noting that I don't have any problems starting PyMPQ or opening an mpq file in it (haven't tested it beyond that yet).




Jul 23 2017, 6:23 am Voyager7456 Post #280

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

Using PyMPQ, I am unable to rename a file. The first time I attempt to do so, the change is just ignored and the name of the file is not changed. The second time I try to rename the same file, I get this error:

Code
Exception in Tkinter callback
Traceback (most recent call last):
 File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in __call__
   return self.func(*args)
 File "F:\Modding Tools\PyMS-master\Libs\SpecialLists.py", line 293, in <lambda>
   e.bind('<Return>', lambda _,i=i,n=n: self.endedit(i,n))
 File "F:\Modding Tools\PyMS-master\Libs\SpecialLists.py", line 302, in endedit
   if self.checkedit != t and self.report.rcmd and not self.report.rcmd(self.entries.index(int(n[5:])),self.checkedit):
 File "F:\Modding Tools\PyMS-master\PyMPQ.pyw", line 829, in do_rename
   if MpqRenameAndSetFileLocale(h, l[0], new, int(l[4]), int(l[4])):
 File "F:\Modding Tools\PyMS-master\Libs\SFmpq.py", line 441, in MpqRenameAndSetFileLocale
   return _SFmpq.MpqRenameAndSetFileLocale(mpq, oldname, newname, oldlocale, newlocale)
WindowsError: exception: access violation reading 0x00000167


The MPQ is not open in anything other than PyMPQ.



all i am is a contrary canary
but i'm crazy for you
i watched you cradling a tissue box
sneezing and sniffling, you were still a fox


Modding Resources: The Necromodicon [WIP] | Mod Night
My Projects: SCFC | ARAI | Excision [WIP] | SCFC2 [BETA] | Robots vs. Humans | Leviathan Wakes [BETA]


Options
Pages: < 1 12 13 14 15 1623 >
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[11:56 pm]
Vrael -- Slyence
Slyence shouted: Hello world.
He stared into the Void, and the Void said "no u"
[2021-11-28. : 5:29 pm]
lil-Inferno -- ya
[2021-11-28. : 1:17 pm]
Slyence -- Hello world.
[2021-11-27. : 8:19 pm]
UndeadStar -- 🌱 :wob: :wob: :wob: 🌱
[2021-11-27. : 5:32 pm]
Slyence -- I'd say I'd have to agree.
[2021-11-26. : 10:44 pm]
Ultraviolet -- 1337 ejaculator
[2021-11-26. : 10:29 pm]
ejac1337 -- derp
[2021-11-26. : 7:08 pm]
Slyence -- Well shucks ..
[2021-11-26. : 4:02 am]
O)FaRTy1billion[MM] -- Slyence
Slyence shouted: I could've swore I used to have a colored username.
probably, they did get reset at some point
[2021-11-26. : 4:02 am]
Apos -- :wob:
Please log in to shout.


Members Online: Roy, DaMnUFo0