Samase
Aug 10 2017, 6:15 pm
By: Neiv
Pages: < 1 2 3 4
 

Dec 18 2018, 5:15 pm Whiplash Post #61



Quote from Neiv
Updated to work with the latest patch. (Hopefully?)

SCR just keeps slightly changing the way files are closed, everything else samase relies on has stayed pretty much stable between last ~20 patches >:l

Thanks for the update :)



None.

Dec 19 2018, 4:18 pm Neiv Post #62



Had to update again, the current patch managed to get memory addresses placed in a way which broke the address finding heuristic for game init code.



None.

Jan 8 2019, 5:29 pm IlyaSnopchenko Post #63



First post here.

First of all, thank you Neiv for providing us a hope for returning to meaningful modding even though the Remastered seemed to have shut us out. I'm a longtime mapmaker but only recently returned to this stuff after years of hiatus. After jumping through a few hoops I've managed to use SAMASE to compile an executable for my current project but I ran into an unexpected issue. One of the campaign maps packaged in with the rest of the stuff crashes on load - when I click Start after briefing. The issue is persistent. The minidump is at the following cloud link.

https://cloud.mail.ru/public/DoVe/JKYrPbEDj

Oddly enough this same map is fully loadable and playable when I play it as a custom game (choosing the .scx from which the scenario.chk that I later imported came). I have two more maps imported to replace the stock campaign and they both work fine. What may cause this and what may need to be done?

The map in question replaces Terran mission 7 in Brood War. The others imported so far are replacing Protoss 3 and Terran 6 in Brood War if it matters. In the past I never encountered any problems replacing stock campaigns in MPQs.

Thanks in advance.



None.

Jan 8 2019, 11:59 pm Neiv Post #64



Did you set the player's race to zerg in the map that crashes?

The crash seems to be from game trying to play invalid music. With campaign maps, the game selects starting music cycling on map id, e.g. 1st map plays terran1, 2nd terran2, 3rd terran3, 4th terran1 again.

But if the player's race is a race whose first campaign mission is normally later than the current map - so
Episode 1: Zerg/Protoss
Episode 2: Protoss
Episode 4: Terran/Zerg
Episode 5: Zerg
the game ends up cycling songs "1/0/-1".

For terran/protoss, the music id just underflows to other races and should work, but zerg tracks are ordered first in the internal data, and underflowing from there will actually crash the game.



None.

Jan 9 2019, 8:11 am IlyaSnopchenko Post #65



Quote from Neiv
Did you set the player's race to zerg in the map that crashes?
Yes, exactly.

Quote
The crash seems to be from game trying to play invalid music. With campaign maps, the game selects starting music cycling on map id, e.g. 1st map plays terran1, 2nd terran2, 3rd terran3, 4th terran1 again.
Ah, the power of rock 'n roll - it can even crash programs. :) Looks like the code isn't very robust if it allows such things to happen, innit? Then again, the creators of the game probably did not foresee that their creation would eventually be picked apart like a matchstick house and made to do some very odd things. :)

Ahem, yes, I was aware of the map id / music connection. It would have been kinda hard not to notice, given that I was tinkering with replacing built-in campaigns since, well, forever. But I was not aware of this bug (?) you described because I was mostly replacing Episode VI campaign with a mostly Terran set of missions (I chose ep6 because I needed something with 10 missions and a bonus one, instead of 8 with a fork at mission 5). When I did replace the Episode IV for another campaign I think I was setting the player race to Protoss regardless of what was on the map, even though the player only controlled the Protoss for the second half of the campaign only... So that means I narrowly avoided a fatal crash that would've been inexplicable for me back then (in 2002...)

Quote
But if the player's race is a race whose first campaign mission is normally later than the current map - so
Episode 1: Zerg/Protoss
Episode 2: Protoss
Episode 4: Terran/Zerg
Episode 5: Zerg
the game ends up cycling songs "1/0/-1".

For terran/protoss, the music id just underflows to other races and should work, but zerg tracks are ordered first in the internal data, and underflowing from there will actually crash the game.
I suppose everything related to music is hardcoded so there is really no way around except switching to using Terran / Zerg campaigns instead of Protoss / Terran? I'll only have about 18 maps' worth so it's not like I can't be flexible with placement. Short of that, I will (reluctantly) change the race of the player in that affected mission even though it really should be Zerg because the player has Zerg economy for the majority of the mission.

Thanks for the help! I was thinking of the cause for half the last evening / night and, suffice to say, was nowhere near discovering the true cause. Ah, the wonders of discovering hidden pitfalls in SC modding even 20 years after the game's release. So far the only caveat regarding the built-in campaigns that I was aware of was that the briefing interface was set to that campaign's race regardless of what the human player's race in the actual mission was, so for the entirety of my previous campaign, I was running mismatched sets of Zerg briefing room and Terran interface in the missions. :)

Post has been edited 1 time(s), last time on Jan 9 2019, 8:26 am by IlyaSnopchenko.



None.

Jan 15 2019, 8:16 am IlyaSnopchenko Post #66



Another thing I ran into. I've attempted to dabble in the Firegraft button editing. So far I haven't done much - just to start, I set Aldaris and the two unused units to have Basic buttonsets, and removed Consume from Infested Duran by giving him the regular "Ghost hero" buttonset. But when I import the .fgp file from the exe/mpq created by Firegraft and attempt to launch the self-executable I compiled for the mod, I get this error:

Before that, when on the first attempt I bold and made some more changes from the get go I got the same kind of error box but with "32" instead of "d". I even checked what the buttonset 32 was, it was Zerg Hive - which I came nowhere near when editing.

Can anyone tell me where is the mistake? I know Firegraft'ing works with SCR, I've seen it done here. :) Should I have imported any other files except the firegraft\*.fgp?

I'm sorry I look so dumb but all my editing skills/mores are from 15 years ago and I feel like an old geezer coming to a teen party and attempting to look relevant. :)

Attachments:
firegraft-error.jpg
Hits: 1 Size: 12.42kb



None.

Options
Pages: < 1 2 3 4
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[08:14 am]
KrayZee -- I don't get it. When a video game is unreasonably criticized harshly, I have fun playing those games. When a game is overhyped, I can't enjoy it for some reason. Bah.
[07:25 am]
NudeRaider -- Vrael
Vrael shouted: lil-Inferno lil-Inferno don't worry I'll probably finish before Starcraft 6
"probably" :lol:
[03:00 am]
RIVE -- xd
[02:35 am]
O)FaRTy1billion[MM] -- xd
[02:33 am]
Moose -- xd
[01:40 am]
lil-Inferno -- xd
[10:42 pm]
RdeRenato -- xd
[09:50 pm]
zsnakezz -- KrayZee
KrayZee shouted: Although I refuse to acknowledge the posts I made is mine.
i can relate
[09:49 pm]
zsnakezz -- double mmm with a twist
[09:48 pm]
zsnakezz -- mmm
Please log in to shout.


Members Online: lifebot, Roy, Olienes7, sandra27209968