Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline Deinon  
#1 Posted : Saturday, December 30, 2017 7:17:44 PM(UTC)
Deinon
Captain
Joined: 5/11/2016(UTC)
Posts: 85

Thanks: 5 times
Was thanked: 4 time(s) in 4 post(s)
Say I want to create a map for the China Infantry general, or complete the one for General Juhziz (I'm aware certain mods do this). How do I add them to the Generals Challenge mission lineups? What do I have to add to their maps, be it scripts or waypoints, which tells the game where the player is supposed to start?
Sponsor
Offline Annihilationzh  
#2 Posted : Sunday, December 31, 2017 5:38:17 PM(UTC)
Annihilationzh
General
Joined: 8/2/2008(UTC)
Posts: 1,779
United Kingdom

Thanks: 26 times
Was thanked: 475 time(s) in 331 post(s)
Originally Posted by: Deinon Go to Quoted Post
Say I want to create a map for the China Infantry general, or complete the one for General Juhziz (I'm aware certain mods do this). How do I add them to the Generals Challenge mission lineups? What do I have to add to their maps, be it scripts or waypoints, which tells the game where the player is supposed to start?

Edit ChallengeMode.ini to add them to the lineup.

You know how to add a starting location to a multiplayer map? If not, there should be a tutorial here somewhere. Generals challenge maps should have a single starting position.

I'm afraid to say Ican't remember if there are any particular scripts you need for a generals challenge map.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
Offline Queryk  
#3 Posted : Thursday, January 18, 2018 7:28:35 AM(UTC)
Queryk
Private
Joined: 6/24/2017(UTC)
Posts: 7

I'd highly recommend you to check out the original generals challenge maps and read trough the scripts. This way you can see how they did these scripts and you might get some new ideas.

To tell the map where the player starts, you need to make a script that spawns a CC and a dozer at a location with a direction. If you want to make this challenge accessible for all factions, you need to add each faction manually.

For example:

If: player'[human player]' is faction name AmericaLaserGeneral
Then: Spawn object 'Lazr_AmericaCommancCenter in Team 'team[human player]' At position
(333.33,333.33,9.00) rotated -135 degrees.
Spawn object 'Lazr_AmericaVehicleDozer in Team 'team[human player]' At position
(433.33,433.33,9.00) rotated -135 degrees.
Offline Deinon  
#4 Posted : Thursday, January 18, 2018 7:28:06 PM(UTC)
Deinon
Captain
Joined: 5/11/2016(UTC)
Posts: 85

Thanks: 5 times
Was thanked: 4 time(s) in 4 post(s)
Originally Posted by: Queryk Go to Quoted Post
I'd highly recommend you to check out the original generals challenge maps and read trough the scripts. This way you can see how they did these scripts and you might get some new ideas.

To tell the map where the player starts, you need to make a script that spawns a CC and a dozer at a location with a direction. If you want to make this challenge accessible for all factions, you need to add each faction manually.

For example:

If: player'[human player]' is faction name AmericaLaserGeneral
Then: Spawn object 'Lazr_AmericaCommancCenter in Team 'team[human player]' At position
(333.33,333.33,9.00) rotated -135 degrees.
Spawn object 'Lazr_AmericaVehicleDozer in Team 'team[human player]' At position
(433.33,433.33,9.00) rotated -135 degrees.
I had looked through the scripts for the other Generals missions, even tried that scripting. They don't include scripts to manually spawn the command center and first dozer. I just crash to exit when I try to load the map through that route, even if the map works fine renamed and loaded as a skirmish map.

Offline Annihilationzh  
#5 Posted : Friday, January 19, 2018 8:59:35 AM(UTC)
Annihilationzh
General
Joined: 8/2/2008(UTC)
Posts: 1,779
United Kingdom

Thanks: 26 times
Was thanked: 475 time(s) in 331 post(s)
Originally Posted by: Deinon Go to Quoted Post
I had looked through the scripts for the other Generals missions, even tried that scripting. They don't include scripts to manually spawn the command center and first dozer. I just crash to exit when I try to load the map through that route, even if the map works fine renamed and loaded as a skirmish map.

Why did you ignore me? I already told you how it's done...

Originally Posted by: Annihilationzh Go to Quoted Post
You know how to add a starting location to a multiplayer map? If not, there should be a tutorial here somewhere. Generals challenge maps should have a single starting position.


You're free to ignore this if you don't ever want your map to work. But that's a bit pointless.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
Offline Deinon  
#6 Posted : Friday, January 19, 2018 7:12:22 PM(UTC)
Deinon
Captain
Joined: 5/11/2016(UTC)
Posts: 85

Thanks: 5 times
Was thanked: 4 time(s) in 4 post(s)
Originally Posted by: Annihilationzh Go to Quoted Post
Originally Posted by: Deinon Go to Quoted Post
I had looked through the scripts for the other Generals missions, even tried that scripting. They don't include scripts to manually spawn the command center and first dozer. I just crash to exit when I try to load the map through that route, even if the map works fine renamed and loaded as a skirmish map.

Why did you ignore me? I already told you how it's done...

Originally Posted by: Annihilationzh Go to Quoted Post
You know how to add a starting location to a multiplayer map? If not, there should be a tutorial here somewhere. Generals challenge maps should have a single starting position.


You're free to ignore this if you don't ever want your map to work. But that's a bit pointless.
Sorry I didn't get back to you, I've been tied up with a lot of personal stuff lately and checked in here for the first time after my absence. I included the starting waypoint. When it crashes, it isn't outputting anything to logs that I can see.

Again, sorry. Thanks for your reply.

Offline Queryk  
#7 Posted : Sunday, January 21, 2018 6:36:30 AM(UTC)
Queryk
Private
Joined: 6/24/2017(UTC)
Posts: 7

If it is the Infantry general you want to include, you don't actually have to edit Challengemode.ini, since the infantry general is included in the file (persona 7).
You do need to edit the campaign.ini
To test if your challenge works, you can edit one generals challenge to meet the infantry general first. So if you want to play airforce vs infantry for example, it should look like this:

Campaign CHALLENGE_0
CampaignNameLabel CAMPAIGN:CHALLENGE_0
FirstMission Mission01
FinalVictoryMovie USACampaignVictory
IsChallengeCampaign yes
PlayerFaction FactionAmericaAirForceGeneral
Mission Mission01
Map Maps\GC_InfantryGeneral\GC_InfantryGeneral.map
GeneralName GUI:BioNameEntry_Pos7
IntroMovie GeneralsChallengeBackground
NextMission Mission02
END
Mission Mission02
Map Maps\GC_NukeGeneral\GC_NukeGeneral.map
GeneralName GUI:BioNameEntry_Pos2
IntroMovie GeneralsChallengeBackground
NextMission Mission03
END

Etc.

Notice here that your map needs to be in the same folder as the original maps and it needs the name you give it in mission01 above (so in this case GC_InfantryGeneral)

Just placing a waypoint with 'player_1_start' should make the map work I think.

Where does the game crash? Before starting the game or before starting the challenge?
Offline Deinon  
#8 Posted : Sunday, February 11, 2018 11:39:53 PM(UTC)
Deinon
Captain
Joined: 5/11/2016(UTC)
Posts: 85

Thanks: 5 times
Was thanked: 4 time(s) in 4 post(s)
I included the starting position waypoint and made the prescribed change to Campaign.ini, but I still crash when loading the map via challenge mode. I can post the ReleaseCrashInfo file produced when this happens, but it's an "exception at address violation" message which I'm not sure is terribly helpful.

Quote:
Release Crash at Sun Feb 11 22:25:50 2018
; Reason Uncaught Exception in GameEngine::update

Last error:
Exception is access violation
WinMain at 401720
Error code: EXCEPTION_ACCESS_VIOLATION
Description: The thread tried to read from or write to a virtual address for which it does not have the appropriate access.
Access address:00000038 was read from.

Stack dump:
<Unknown>(-1) : <Unknown> 0x005B6E99

Details:
Register dump...
Eip:005B6E99 Esp:0018F660 Ebp:00000038
Eax:0018F688 Ebx:0018F6CC Ecx:00000038
Edx:0018F6CC Esi:00000038 Edi:00000001
EFlags:00010216
CS:0023 SS:002b DS:002b ES:002b FS:0053 GS:002b
EIP bytes dump...

Bytes at CS:EIP (005B6E99) : 8B 55 00 56 57 8B 7A 04 85 FF 89 54 24 10 74 57 8B 03 85 C0 8D 70 04 75 05 BE 68 97 93 00 8D 4F

Current stack:
The loading screen shows, General Fai says "My men will crush you!", and the game crashes.

I can pass along the partial map if anyone would be willing to take a look, but it requires the "Global Crisis" mod. Might run without it, I haven't included any units in the map which were created in that mod, but I've thus far done all development with it installed because I'm also working on Generals Challenge missions for the Syrian and Israeli factions it adds to the game.

Edited by user Sunday, February 11, 2018 11:43:26 PM(UTC)  | Reason: Not specified

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.