DieHard Wolfers Forum Index DieHard Wolfers
A Wolfenstein 3d Fan Community


  Hosted by: MCS & Areyep.com - Designed by: BrotherTank

Original Yahoo Forum - Die Hard Archives

AReyeP HomepageAreyep Homepage DieHard Wolfenstein BunkerDieHard Wolfenstein Bunker Log inLog in RegisterRegister Banlist FAQFAQ Search ForumsSearch

  Username:    Password:      Remember me       

Editing MMC source code to not reset weapons between levels?
Page 1 of 1
DieHard Wolfers Forum Index -> SDL Code Crackers View Previous TopicRefresh this PageAdd Topic to your Browser FavoritesSearch ForumsPrint this TopicE-mail TopicGoto Page BottomView Next Topic
Post new topicReply to topic
Author Message
beefjerky26
Don't Hurt Me
Don't Hurt Me


Joined: 04 May 2013
Last Visit: 24 Dec 2019

Topics: 17
Posts: 60

blank.gif

PostPosted: Wed Dec 18, 2019 4:36 am
   Subject: Editing MMC source code to not reset weapons between levels?
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Next PostGoto Bottom of Posts

Say I wanted to use the MMC code as the basis for my own levels, what cpp file would contain the code that resets the weapons, ammo, and health to a default state? I just want them to carry over to each new level.
AlumiuN
DieHard Wolfer
DieHard Wolfer


Joined: 29 Nov 2007
Last Visit: 9:15 ago.

Topics: 41
Posts: 2646
Location: Christchurch, New Zealand
newzealand.gif

PostPosted: Wed Dec 18, 2019 4:42 pm
   Subject: Re: Editing MMC source code to not reset weapons between levels?
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

I think the ResetGamestate function was responsible for that; IIRC it's in WL_PLAY.
beefjerky26
Don't Hurt Me
Don't Hurt Me


Joined: 04 May 2013
Last Visit: 24 Dec 2019

Topics: 17
Posts: 60

blank.gif

PostPosted: Fri Dec 20, 2019 3:17 am
   Subject: Re: Editing MMC source code to not reset weapons between levels?
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Thanks, I'll check it!
beefjerky26
Don't Hurt Me
Don't Hurt Me


Joined: 04 May 2013
Last Visit: 24 Dec 2019

Topics: 17
Posts: 60

blank.gif

PostPosted: Mon Dec 23, 2019 8:12 am
   Subject: Re: Editing MMC source code to not reset weapons between levels?
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

I can't get the code to compile. I have installed CodeBlocks, SDL and SDL Mixer, but it still shows in code:blocks that it can't find the compiler, even though I installed MinGW with it.
Sad Is this a problem with Code:blocks trying to find the path for MinGW in the MMC source folder?
AlumiuN
DieHard Wolfer
DieHard Wolfer


Joined: 29 Nov 2007
Last Visit: 9:15 ago.

Topics: 41
Posts: 2646
Location: Christchurch, New Zealand
newzealand.gif

PostPosted: Mon Dec 23, 2019 1:50 pm
   Subject: Re: Editing MMC source code to not reset weapons between levels?
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

That's very odd; can you post the exact error message?
beefjerky26
Don't Hurt Me
Don't Hurt Me


Joined: 04 May 2013
Last Visit: 24 Dec 2019

Topics: 17
Posts: 60

blank.gif

PostPosted: Mon Dec 23, 2019 3:50 pm
   Subject: Re: Editing MMC source code to not reset weapons between levels?
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Ok I figured out the compiler issue, but now when I try to build I get this:

||=== Build: default in Wolf4SDL (compiler: GNU GCC Compiler) ===|
||WARNING: Can't read file's timestamp: C:\Users\Me\Downloads\Bunker MMC\signon.cpp|
C:\Users\Me\Downloads\Bunker MMC\wl_play.cpp||In function 'void CheckKeys()'Neutral
C:\Users\Me\Downloads\Bunker MMC\wl_play.cpp|663|error: invalid conversion from 'const char*' to 'char*' [-fpermissive]|
C:\Users\Me\Downloads\Bunker MMC\wl_play.cpp|459|note: initializing argument 1 of 'void CenterMessage(char*)'|
C:\Users\Me\Downloads\Bunker MMC\wl_play.cpp|697|error: invalid conversion from 'const char*' to 'char*' [-fpermissive]|
C:\Users\Me\Downloads\Bunker MMC\wl_play.cpp|459|note: initializing argument 1 of 'void CenterMessage(char*)'|
C:\Users\Me\Downloads\Bunker MMC\wl_play.cpp|709|error: invalid conversion from 'const char*' to 'char*' [-fpermissive]|
C:\Users\Me\Downloads\Bunker MMC\wl_play.cpp|459|note: initializing argument 1 of 'void CenterMessage(char*)'|
C:\Users\Me\Downloads\Bunker MMC\wl_play.cpp|717|error: invalid conversion from 'const char*' to 'char*' [-fpermissive]|
C:\Users\Me\Downloads\Bunker MMC\wl_play.cpp|459|note: initializing argument 1 of 'void CenterMessage(char*)'|
C:\Users\Me\Downloads\Bunker MMC\wl_play.cpp|733|error: invalid conversion from 'const char*' to 'char*' [-fpermissive]|
C:\Users\Me\Downloads\Bunker MMC\wl_play.cpp|459|note: initializing argument 1 of 'void CenterMessage(char*)'|
C:\Users\Me\Downloads\Bunker MMC\wl_play.cpp|742|error: invalid conversion from 'const char*' to 'char*' [-fpermissive]|
C:\Users\Me\Downloads\Bunker MMC\wl_play.cpp|459|note: initializing argument 1 of 'void CenterMessage(char*)'|
C:\Users\Me\Downloads\Bunker MMC\wl_play.cpp|758|error: invalid conversion from 'const char*' to 'char*' [-fpermissive]|
C:\Users\Me\Downloads\Bunker MMC\wl_play.cpp|459|note: initializing argument 1 of 'void CenterMessage(char*)'|
C:\Users\Me\Downloads\Bunker MMC\wl_main.cpp||In function 'boolean SaveTheGame(FILE*, int, int)'Neutral
C:\Users\Me\Downloads\Bunker MMC\wl_main.cpp|411|error: name lookup of 'i' changed for ISO 'for' scoping [-fpermissive]|
C:\Users\Me\Downloads\Bunker MMC\wl_main.cpp|411|note: (if you use '-fpermissive' G++ will accept your code)|
||=== Build failed: 8 error(s), 1 warning(s) (0 minute(s), 0 second(s)) ===|
Tricob
Moderator
<B>Moderator</B>


Joined: 14 Mar 2005
Last Visit: 25 Jan 2020

Topics: 168
Posts: 8502
Location: Neo-traditions, Inc.
usa.gif

PostPosted: Mon Dec 23, 2019 3:59 pm
   Subject: Re: Editing MMC source code to not reset weapons between levels?
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

I would just follow instructions the mod came with to have the Weapon Reset Feature set to Off. You can find out how this is done in the documentation.
AlumiuN
DieHard Wolfer
DieHard Wolfer


Joined: 29 Nov 2007
Last Visit: 9:15 ago.

Topics: 41
Posts: 2646
Location: Christchurch, New Zealand
newzealand.gif

PostPosted: Mon Dec 23, 2019 7:08 pm
   Subject: Re: Editing MMC source code to not reset weapons between levels?
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Actually, now that I think about it, as long as you make the bottom right tile (i.e 63,63) a 0, that stuff will persist between levels, so you don't even need to modify the source code. You can grab an up-to-date EXE from the last MMC - here.
Tricob
Moderator
<B>Moderator</B>


Joined: 14 Mar 2005
Last Visit: 25 Jan 2020

Topics: 168
Posts: 8502
Location: Neo-traditions, Inc.
usa.gif

PostPosted: Tue Dec 24, 2019 8:54 am
   Subject: Re: Editing MMC source code to not reset weapons between levels?
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

2017? Shouldn't it be 2019? I thought you'd made significant changes to this one earlier this year.
AlumiuN
DieHard Wolfer
DieHard Wolfer


Joined: 29 Nov 2007
Last Visit: 9:15 ago.

Topics: 41
Posts: 2646
Location: Christchurch, New Zealand
newzealand.gif

PostPosted: Tue Dec 24, 2019 1:26 pm
   Subject: Re: Editing MMC source code to not reset weapons between levels?
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

The Mapping League doesn't have that functionality, so it'd have to be edited to have it.
beefjerky26
Don't Hurt Me
Don't Hurt Me


Joined: 04 May 2013
Last Visit: 24 Dec 2019

Topics: 17
Posts: 60

blank.gif

PostPosted: Tue Dec 24, 2019 2:23 pm
   Subject: Re: Editing MMC source code to not reset weapons between levels?
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Cool thanks!
Tricob
Moderator
<B>Moderator</B>


Joined: 14 Mar 2005
Last Visit: 25 Jan 2020

Topics: 168
Posts: 8502
Location: Neo-traditions, Inc.
usa.gif

PostPosted: Wed Dec 25, 2019 5:42 am
   Subject: Re: Editing MMC source code to not reset weapons between levels?
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

AlumiuN wrote:
The Mapping League doesn't have that functionality, so it'd have to be edited to have it.
I was talking about the name of the ZIP file, silly. Smile Really, when people are looking for a 2109 update, and the only ZIP file they find has the 2017 year on it, it's pretty easy for them to be misled by the ZIP file's name. I know its name got me confused. Confused
AlumiuN
DieHard Wolfer
DieHard Wolfer


Joined: 29 Nov 2007
Last Visit: 9:15 ago.

Topics: 41
Posts: 2646
Location: Christchurch, New Zealand
newzealand.gif

PostPosted: Wed Dec 25, 2019 2:51 pm
   Subject: Re: Editing MMC source code to not reset weapons between levels?
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Tricob wrote:
AlumiuN wrote:
The Mapping League doesn't have that functionality, so it'd have to be edited to have it.
I was talking about the name of the ZIP file, silly. Smile Really, when people are looking for a 2109 update, and the only ZIP file they find has the 2017 year on it, it's pretty easy for them to be misled by the ZIP file's name. I know its name got me confused. Confused


What I meant was that is the most up-to-date EXE that still allows you to carry ammo and whatnot between levels with a map change - everything after that removed that ability. The reason the ZIP file has that name is because that MMC is what the EXE was for Razz
Tricob
Moderator
<B>Moderator</B>


Joined: 14 Mar 2005
Last Visit: 25 Jan 2020

Topics: 168
Posts: 8502
Location: Neo-traditions, Inc.
usa.gif

PostPosted: Wed Dec 25, 2019 4:37 pm
   Subject: Re: Editing MMC source code to not reset weapons between levels?
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Bottom of Posts

I stand corrected. Smile
Display posts from previous:   
Post new topicReply to topic Time synchronized with the forum server time
DieHard Wolfers Forum Index -> SDL Code Crackers View Previous TopicRefresh this PageAdd Topic to your Browser FavoritesSearch ForumsPrint this TopicE-mail TopicGoto Page TopView Next Topic
Page 1 of 1
Jump to:  

Related topics
 Topics   Replies   Views   Last Post 
No new posts Sticky: [Tutorial] Compiling Wolf4SDL with Code::Blocks
Author: dcbasic
99 39165 Tue Dec 03, 2019 12:53 pm
Tris View latest post
No new posts [HELP] Different ammo types.
Author: Raziel
15 3256 Thu Jan 01, 2009 4:45 am
Raziel View latest post
No new posts [help] adding music and seamless levels, textured ceilings
Author: lilmanjs
34 7851 Fri Aug 22, 2008 1:12 pm
lilmanjs View latest post
No new posts [CODE] Health Shown as a message with full screen view
Author: Raziel
13 4031 Thu Jul 31, 2008 8:07 pm
Raziel View latest post
No new posts [HELP WOLF4SDL] High-Res Weapons.
Author: Raziel
9 2855 Sun Jul 13, 2008 5:04 pm
Ripper View latest post
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
   You cannot delete your posts in this forum
You cannot vote in polls in this forum


Copyright ©2003-2008 DieHard Wolfers
A Modified subBunker Theme by BrotherTank
Powered by phpBB © 2001, 2005 phpBB Group