Staredit Network > Forums > Modding Discussion > Topic: Playing Mods in Windowed Mode
Playing Mods in Windowed Mode
Aug 16 2010, 5:25 pm
By: Dem0n  

Dec 31 2011, 8:31 pm XeNotRoN Post #21



Its obvious that my solution works only if your mod is mpq only. Havent used firegraft/memgraft and other similar modding tools, but if I remember right these make modifications to some tables that reside in the starcraft.exe, so they create patches too, they are not mpq only. To make things worse, they might make hack-like code patches, but again, I dont know these tools. Still there is a good solution to play mods windowed, and it has good chances to work even with firegraft: Someone in the previous posts quoted MasterOfChaos' reply with the InfectInject solution. InfectInject is a program of mine. I used it to help programming/debugging for myself. It can be used to inject a piece of code into an exe or dll (for example to starcraft.exe), and after it the infected module tries to load a dll when you start it. For example if you infect starcraft.exe with it, then it will try to load starcraft.exe.visitor as a dll. If you place there an injectable dll plugin (by renaming wmode.dll or scwnd.hdl to starcraft.exe.visitor) then starcraft will automatically load it because of the "infection". This way you can use a 3rd party program that manipulates starcraft, still starcraft is also loading a plugin of your choice in addition. The only problem can be if your third party plugin (like firegraft) check the checksum of starcraft.exe, or another problem can be if you are playing online where the "infection" is caught by cheat detection. If you need to load more than one plugins with the InfectInject program, then you have to write a dll that will be loaded by starcraft because of the infection, and then your dll loads a lot of other dlls you want.

EDIT:
I don't have compiled versions of the previously mentioned programs at hand, they are stored somewhere on a harddrive, but thanks to MasterOfChaos who conserveed some good stuff I found this: http://winner.cspsx.de/Starcraft/Tool/InfectedStarcraft.zip
It also seems that MoC put in a multiplexer dll of his own (InfectedStarcraft.exe.visitor, the stuff I wrote about in the last sentence in my post), so you don't have to bother with this. The only problem with this is that it contains W-MODE 1.01 DLL, and not the version 1.02

Extract this zip to your starcraft folder. The zip already contains an infected starcraft.exe of version 1.16.1. If you want to use it with another version then delete InfectedStarcraft.exe, make a copy of starcraft.exe of your version as InfectedStarcraft.exe and run "InjectInfect InfectedStarcraft.exe" once to "infect" your starcraft. Then edit InfectedStarcraft.exe.injlist and remove all plugins from the list that are not compatible with your starcraft version. My plugins (multipleinstances.dll, and wmode.dll) are working with all starcraft versions.

If you need your starcraft executable to have the name "starcraft.exe" instead of "InfectedStarcraft.exe", then just rename InfectedStarcraft.exe to Starcraft.exe, and do similarly with InfectedStarcraft.exe.visitor and InfectedStarcraft.exe.injlist.
Thats all! Try it, and keep on crying if it doesn't work... :D :D :D
Thanks goes to MoC for the packaged stuff.

Post has been edited 1 time(s), last time on Dec 31 2011, 9:04 pm by DevliN. Reason: Double post



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:27 am]
m.0.n.3.y -- Maybe because it's an EUD map?
[03:27 am]
m.0.n.3.y -- Can't upload maps to the DB. Error says "The action you have performed caused an Error". Any word?
[07:46 am]
RIVE -- :wob:
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
Please log in to shout.


Members Online: Roy, lil-Inferno