Staredit Network > Forums > Modding Assistance > Topic: [ASSISTANCE]Title Cards in Custom Maps by X405
[ASSISTANCE]Title Cards in Custom Maps by X405
Mar 30 2021, 1:59 pm
By: DeltaCadimus  

Mar 30 2021, 1:59 pm DeltaCadimus Post #1



X405 recently did a little GPTP trick at the Project Hydra discord, where he came up with something interesting. And yes, we even talked about it for a bit, and he's allowing me to share it with you here.

Quote
struct CampaignMission
{
char *missionName;
int missionIndex;
};

SCBW_DATA(CampaignMission, campaignMissions, 0x4FFF60);

void *loadInitCreditsBIN(char *a1) {
int address = 0x4d8df0;
void * result_;
__asm {
mov eax, a1
call address
mov result_, eax
}
return result_;
}

void __cdecl sub_4D9200()
{
if (!multiPlayerMode && !(CHEAT_STATE & CheatFlags::CHEAT_NoGlues) && campaignIndex)
{
for (int i = 0; i < 65; i++)
{
if (campaignMissions[i].missionIndex == CampaignIndex)
loadInitCreditsBIN(campaignMissions[i].missionName);
}
}
// The code above is the original function at address 0x4D9200
// The code below is my patch:
else if (campaignIndex == 0 && CurrentMapFileName)
{
SFileOpenArchive(CurrentMapFileName, 0, 0, &mapArchiveHandle);
HANDLE unusedHandle;
bool establishingShotExists = SFileOpenFileEx(mapArchiveHandle, "rez\\est.txt", 0, &unusedHandle);
if (establishingShotExists)
{
loadInitCreditsBIN_("est");
}
SFileCloseArchive(mapArchiveHandle);
}
}

With this code (directly from discord) embedded and plugged in to a mod, he was able to come up with this (from Pr0nogo):

https://youtu.be/9LHbfyHP9K4

CREDITS TO - X405



By Diogo Mainardi:

"Brazil is the country of the future. But we won't get better. It's everyone else who'll get worse."

"My ideology, as a public figure whom writes an opinion column, is very well set: Press IS NOT propaganda. Should a journalist make propaganda for the government, I don't have the slightest corporate shame. I'll mock him."

"The government once called me an 'unreliable source'. It was the greatest compliment I could ever receive, I'd frame it and hang it on the wall. Imagine if I were considered a 'trustworthy man'. I'd change profession."

"I was once tired of the firefights at my doorstep. Now it's gone better - they started bombing."

Mar 31 2021, 12:47 pm Voyager7456 Post #2

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

This is really cool.



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]


Apr 1 2021, 9:31 pm X405 Post #3



Thanks, DeltaCadimus, for your intereset!

I've made it available as a binary: http://www.staredit.net/topic/18221/

If anyone is interested in the code - here's a commit for you. Look around the github repo. If you know what you're doing, you should quickly get an idea on how to replicate it in your project.

This already has been ported to Pr0nogo's Project Hydra.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[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
[2024-4-20. : 8:09 pm]
Vrael -- woo baby talk about a time crunch
[2024-4-20. : 8:08 pm]
Vrael -- 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
so that gives me approximately 27 more years to finish tenebrous before you get to it?
Please log in to shout.


Members Online: Ultraviolet