Jump to content

[SOLVED]Preparation Screen and Unit Loading Troubles


Strict_Gryphon90
 Share

Recommended Posts

Hello everyone,

This may very well be a noob question but I just can't seem to figure this out on my own.

I'm trying to create a chapter with the prep screen but no matter what I try I get one of these errors:

  • Prep screen never comes up
  • Not all of my enemies load
  • My units load in slots for enemies and my formations is set to enemy slots
  • Permanent black screen after prep screen

Here is my script:

//Made by markyjoe1990 of Youtube
//Modified by Nintenlord

#define DISABLE_TUTORIALS
#include EAstdlib.event

EventPointerTable(0x1B,Pointers)

ORG 0xD81150
Pointers:
POIN Turn_events
POIN Character_events
POIN Location_events
POIN Misc_events
POIN BallistaData
POIN TrapData TrapData
POIN Bad Bad Bad Bad
POIN Good Good Good Good
POIN Opening_event Ending_event

Good:
UNIT 0x00 0x00 0x00 Level(1,Ally,False) [4, 19] [4, 19] [0x00] [0x00,0x00,0x00,0x00]
UNIT 0x00 0x00 Lyn Level(1,Ally,False) [3, 19] [3, 19] [0x00] [0x00,0x00,0x00,0x00]
UNIT 0x00 0x00 Lyn Level(1,Ally,False) [3, 18] [3, 18] [0x00] [0x00,0x00,0x00,0x00]
UNIT 0x00 0x00 Lyn Level(1,Ally,False) [3, 20] [3, 20] [0x00] [0x00,0x00,0x00,0x00]
UNIT 0x00 0x00 Lyn Level(1,Ally,False) [2, 19] [2, 19] [0x00] [0x00,0x00,0x00,0x00]
UNIT 0x00 0x00 Lyn Level(1,Ally,False) [1, 18] [1, 18] [0x00] [0x00,0x00,0x00,0x00]
UNIT 0x00 0x00 Lyn Level(1,Ally,False) [1, 20] [1, 20] [0x00] [0x00,0x00,0x00,0x00]
UNIT Empty

Bad:
UNIT Erik Cavalier 0x00 Level(16,Enemy,True) [8,5] [8,5] [AxeReaver, HorseSlayer, Javelin, DragonShield] [0x03,0x03,0x09,0x20]
UNIT 0x61 Archer 0x00 Level(1,Enemy,True) [5,8] [5,8] [ironBow] [0x03,0x03,0x09,0x20]
UNIT 0x61 Archer 0x00 Level(1,Enemy,True) [8,8] [8,8] [ironBow] [0x03,0x03,0x09,0x20]
UNIT 0x61 Archer 0x00 Level(1,Enemy,True) [11,8] [11,8] [ironBow] [0x03,0x03,0x09,0x20]
UNIT 0x61 Archer 0x00 Level(1,Enemy,True) [11,4] [11,4] [ironBow] [0x03,0x03,0x09,0x20]
UNIT 0x61 Archer 0x00 Level(7,Enemy,True) [1,2] [1,2] [steelBow] [0x00,0x03,0x09,0x00]
UNIT 0x61 Archer 0x00 Level(9,Enemy,True) [1,4] [1,4] [silverBow] [0x03,0x03,0x09,0x20]
UNIT 0x61 Archer 0x00 Level(7,Enemy,True) [1,7] [1,7] [steelBow] [0x00,0x03,0x09,0x00]
UNIT 0x61 Archer 0x00 Level(7,Enemy,True) [18,8] [18,8] [steelBow] [0x00,0x03,0x09,0x00]
UNIT 0x61 Archer 0x00 Level(7,Enemy,True) [13,11] [13,11] [steelBow] [0x00,0x03,0x09,0x00]
UNIT 0x61 Archer 0x00 Level(7,Enemy,True) [7,16] [7,16] [steelBow] [0x00,0x03,0x09,0x00]
UNIT 0x61 Fighter 0x00 Level(10,Enemy,True) [0,5] [0,5] [HandAxe, SwordReaver] [0x03,0x03,0x09,0x20]
UNIT 0x61 Fighter 0x00 Level(10,Enemy,True) [2,5] [2,5] [HandAxe, SwordReaver] [0x03,0x03,0x09,0x20]
UNIT 0x61 Fighter 0x00 Level(8,Enemy,True) [2,8] [2,8] [steelAxe] [0x00,0x03,0x09,0x00]
UNIT 0x61 Fighter 0x00 Level(8,Enemy,True) [0,11] [0,11] [steelAxe] [0x00,0x03,0x09,0x00]
UNIT 0x61 Fighter 0x00 Level(8,Enemy,True) [14,13] [14,13] [steelAxe] [0x00,0x03,0x09,0x00]
UNIT 0x61 Fighter 0x00 Level(8,Enemy,True) [9,19] [9,19] [steelAxe] [0x00,0x03,0x09,0x00]
UNIT 0x61 Mage 0x00 Level(9,Enemy,True) [0,4] [0,4] [Elfire] [0x03,0x03,0x09,0x20]
UNIT 0x61 Mage 0x00 Level(9,Enemy,True) [2,4] [2,4] [Elfire] [0x03,0x03,0x09,0x20]
UNIT 0x61 Mage 0x00 Level(7,Enemy,True) [8,7] [8,7] [Fimbulvetr] [0x00,0x03,0x09,0x00]
UNIT 0x61 Mage 0x00 Level(7,Enemy,True) [7,14] [7,14] [Fire] [0x00,0x03,0x09,0x00]
UNIT 0x61 Mage 0x00 Level(7,Enemy,True) [15,21] [15,21] [Fire] [0x00,0x03,0x09,0x20]
UNIT 0x61 Mercenary 0x00 Level(8,Enemy,True) [17,8] [17,8] [steelSword] [0x00,0x03,0x09,0x00]
UNIT 0x61 Mercenary 0x00 Level(8,Enemy,True) [15,11] [15,11] [steelSword] [0x00,0x03,0x09,0x00]
UNIT 0x61 Mercenary 0x00 Level(8,Enemy,True) [16,12] [16,12] [steelSword] [0x00,0x03,0x09,0x00]
UNIT 0x61 Mercenary 0x00 Level(8,Enemy,True) [3,14] [3,14] [steelSword] [0x00,0x03,0x09,0x00]
UNIT 0x61 Mercenary 0x00 Level(8,Enemy,True) [8,18] [8,18] [steelSword] [0x00,0x03,0x09,0x00]
UNIT 0x61 Monk 0x00 Level(7,Enemy,True) [2,14] [2,14] [shine] [0x00,0x03,0x09,0x00]
UNIT 0x61 Monk 0x00 Level(7,Enemy,True) [19,15] [19,15] [shine] [0x00,0x03,0x09,0x00]
UNIT 0x61 Myrmidon 0x00 Level(8,Enemy,True) [0,3] [0,3] [ironSword] [0x00,0x03,0x09,0x00]
UNIT 0x61 Myrmidon 0x00 Level(8,Enemy,True) [2,3] [2,3] [ironSword] [0x00,0x03,0x09,0x00]
UNIT 0x61 Myrmidon 0x00 Level(8,Enemy,True) [10,11] [10,11] [ironSword] [0x00,0x03,0x09,0x00]
UNIT 0x61 Myrmidon 0x00 Level(8,Enemy,True) [4,12] [4,12] [ironSword] [0x00,0x03,0x09,0x00]
UNIT 0x61 Myrmidon 0x00 Level(8,Enemy,True) [14,17] [14,17] [ironSword] [0x00,0x03,0x09,0x00]
UNIT 0x61 Myrmidon 0x00 Level(8,Enemy,True) [15,18] [15,18] [ironSword] [0x00,0x03,0x09,0x00]
UNIT Empty

BadTwo:
UNIT 0x61 Shaman 0x00 Level(7,Enemy,True) [19,3] [19,3] [Flux] [0x00,0x03,0x09,0x00]
UNIT 0x61 Shaman 0x00 Level(7,Enemy,True) [0,9] [0,9] [Flux] [0x00,0x03,0x09,0x00]
UNIT 0x61 Soldier 0x00 Level(8,Enemy,True) [17,4] [17,4] [steelSpear, Javelin] [0x03,0x03,0x09,0x20]
UNIT 0x61 Soldier 0x00 Level(10,Enemy,True) [1,5] [1,5] [Javelin, AxeReaver] [0x03,0x03,0x09,0x20]
UNIT 0x61 Soldier 0x00 Level(12,Enemy,True) [7,6] [7,6] [silverSpear, Javelin] [0x03,0x03,0x09,0x20]
UNIT 0x61 Soldier 0x00 Level(12,Enemy,True) [9,6] [9,6] [silverSpear, Javelin] [0x03,0x03,0x09,0x20]
UNIT 0x61 Soldier 0x00 Level(8,Enemy,True) [19,8] [19,8] [steelSpear] [0x00,0x03,0x09,0x00]
UNIT 0x61 Soldier 0x00 Level(8,Enemy,True) [2,9] [2,9] [steelSpear] [0x00,0x03,0x09,0x00]
UNIT 0x61 Soldier 0x00 Level(8,Enemy,True) [1,10] [1,10] [steelSpear] [0x00,0x03,0x09,0x00]
UNIT 0x61 Soldier 0x00 Level(8,Enemy,True) [16,11] [16,11] [steelSpear] [0x00,0x03,0x09,0x00]
UNIT 0x61 Soldier 0x00 Level(8,Enemy,True) [17,19] [17,19] [steelSpear, Javelin] [0x03,0x03,0x09,0x20]
UNIT 0x61 Soldier 0x00 Level(8,Enemy,True) [8,20] [8,20] [steelSpear] [0x00,0x03,0x09,0x00]
UNIT 0x61 Soldier 0x00 Level(8,Enemy,True) [12,21] [12,21] [steelSpear] [0x00,0x03,0x09,0x00]
UNIT 0x61 Troubadour 0x00 Level(7,Enemy,True) [0,0] [0,0] [Physic, Fire] [0x0F,0x03,0x09,0x20]
UNIT 0x61 Troubadour 0x00 Level(7,Enemy,True) [2,0] [2,0] [Physic, Fire] [0x0F,0x03,0x09,0x20]
UNIT 0x61 Troubadour 0x00 Level(7,Enemy,True) [10,14] [10,14] [Physic, Fire] [0x0F,0x03,0x09,0x20]
UNIT 0x61 Troubadour 0x00 Level(7,Enemy,True) [12,14] [12,14] [Physic, Fire] [0x0F,0x03,0x09,0x20]
UNIT 0x61 WyvernKnight 0x00 Level(8,Enemy,True) [5,2] [5,2] [Javelin] [0x00,0x03,0x09,0x00]
UNIT 0x61 WyvernKnight 0x00 Level(8,Enemy,True) [4,3] [4,3] [steelSpear] [0x00,0x03,0x09,0x00]
UNIT 0x61 WyvernKnight 0x00 Level(8,Enemy,True) [6,3] [6,3] [steelSpear] [0x00,0x03,0x09,0x00]
UNIT 0x61 WyvernKnight 0x00 Level(8,Enemy,True) [10,3] [10,3] [steelSpear] [0x00,0x03,0x09,0x00]
UNIT 0x61 WyvernKnight 0x00 Level(8,Enemy,True) [11,2] [11,2] [Javelin] [0x00,0x03,0x09,0x00]
UNIT 0x61 WyvernKnight 0x00 Level(8,Enemy,True) [12,1] [12,1] [steelSpear] [0x00,0x03,0x09,0x00]
UNIT 0x61 WyvernKnight 0x00 Level(8,Enemy,True) [19,6] [19,6] [steelSpear] [0x00,0x03,0x09,0x00]
UNIT Empty

Turn_events:
TurnEventPlayer(0x05,Ending_event,21)
END_MAIN

Character_events:
END_MAIN

Location_events:
END_MAIN

Misc_events:
DefeatBoss(Ending_event)
CauseGameOverIfLordDies
END_MAIN

BallistaData:
BLST [5,8] 0x34
BLST [8,8] 0x34
BLST [11,8] 0x34
BLST [11,4] 0x34
BLST
ALIGN 4

Opening_event:
OOBB
LOU1 Bad
LOU1 BadTwo
LOU1 Good
ENDB

Ending_event:
MoveToChapter(Ch5)
ENDA

TrapData:
ENDTRAP

MESSAGE Events end at offset currentOffset
//The map for this chapter is at offset: ????????

Under good I put those parameters because I don't want to load specific units. I want the player to be able to select 7 units in the prep screen. Let me know if this is wrong.

I made sure that the prep screen was enabled in the chapter data Nightmare module.

Thank you very much,

Gryphon

Edited by Strict_Gryphon90
Link to comment
Share on other sites

Uh, the first thing I noticed was that instead of loading units you just loaded 0x00 with the class 0x00. Try filling those in, also make sure Nightmare has it set to Yes. Though, if you're trying to make the prep screen appear on the prologue, it will not work.

Link to comment
Share on other sites

you can put whatever into good and it will just work; on maps with prep screen the only thing that really matters is that you load an actual unit (instead of 0x0). it will replace any actual data you put in there with "you can drop a unit here"

Link to comment
Share on other sites

Thanks for the replies guys.

I tried what you guys suggested but unfortunately it didn't work. I went ahead and made a video detailing the issue (My software didn't record the mouse pointer, sorry about that):

EDIT: I just figured it out. Turns out I didn't need that extra POIN BallistaData. Ballistas are handled by TrapData. I had read BallistaData in Arch's tutorial and thought I needed to add it. Anyway I removed it and now my event works just fine. I won't pretend to know exactly what adding POIN BallistaData did to my array, but if I had to make a guess I would say it shifted the "slots" (whatever a slot is) of my pointers down one and so they started pointing at things they shouldn't point at.

Thanks for the help guys. :)

Edited by Strict_Gryphon90
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...