| Welcome to NHL04 Rebuilt 2017. We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
- Pages:
- 1
- 2
| Some infos for Scripts | |
|---|---|
| Tweet Topic Started: Aug 13 2017, 05:38 PM (1,159 Views) | |
| Jedeash | Aug 13 2017, 05:38 PM Post #1 |
|
Charter Member
|
GENERAL GAME INFOS Launcher.Game.AwayTeamID Launcher.Game.AwayFullName Launcher.Game.AwayNameAbbreviation Launcher.Game.HomeTeamID Launcher.Game.HomeFullName Launcher.Game.HomeNameAbbreviation Launcher.Game.ArenaName Launcher.Game.ArenaLocation Launcher.Game.ArenaCapacity Launcher.Game.ArenaAttendance TIME Launcher.Game.Period Launcher.Game.Time ACTION Launcher.Game.PlayerWithPuck Launcher.Game.TeamWithPuck Launcher.Game.ShotSpeed Launcher.Game.HomeLine Launcher.Game.AwayLine CURRENT SCORE Launcher.Stats.HomeGoals Launcher.Stats.HomeShots Launcher.Stats.HomeHits Launcher.Stats.HomePasses Launcher.Stats.HomePassAttempts Launcher.Stats.HomeFaceoffsWon Launcher.Stats.HomeOneTimers Launcher.Stats.HomePowerPlays Launcher.Stats.HomePowerPlayGoals Launcher.Stats.HomePIM Launcher.Stats.HomePenalties Launcher.Stats.AwayGoals ... STATE OF GAME Launcher.Game.InCutscene Launcher.Game.Paused Launcher.Game.PlayStopped Launcher.Game.Loading Launcher.Game.InReplay Launcher.Game.Intermission EVENTS Launcher.Game.PenaltyPending Launcher.Game.PenaltyPendingTeam Launcher.Game.PenaltyPendingPlayer Launcher.Game.PenaltyPendingID Launcher.Game.PenaltyPendingTime Launcher.Game.LastPenaltyTeam Launcher.Game.LastPenaltyPlayer Launcher.Game.LastPenaltyID Launcher.Game.LastPenaltyTime Launcher.Game.Warning PLAYER (ID) Launcher.Player.FirstName Launcher.Player.LastName Launcher.Player.Number Launcher.Player.Attribute |
|
"They did not know it was impossible so they did it" Mark Twain | |
![]() |
|
| Jedeash | Aug 15 2017, 12:59 PM Post #2 |
|
Charter Member
|
Here are some "basics" How to Draw text (make a texte appear on the screen) How to draw a sprite (Make an image appear on the screen) Make a text appear on the screen with custom font Myfont = Launcher.Font.Load(FontFamily, FontSize, FontWeight, FontItalics, FontUnderline, FontStrike, FontAntialiased) Launcher.Font.DrawText (Myfont,text,X,Y,FontColor) Example I want to Draw a blue "Hello Guys" In Arial, 38, bold, Underlined at X=400 Y=200
INFO the font color is the hex code with prefix 0xee EXAMPLE : for A Blue (code #1a85e7) value will be 0xee1a85e7) For HEXCODEhttp://www.color-hex.com/ Make an image appear on the screen I have to load the image then eventually "Clip" the part i want then draw it THE IMAGE MUST BE POW2 : This means each dimension must be 2 ^ X (2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096) CASE 1 : load and draw an image Myimage = Launcher.Sprite.Load("Path/myimage.png") Launcher.Sprite.Draw(Myimage, X, Y) Example I want to draw a french flag image (Flagfr.png) located in launcher/media/textures/flags at X=20,Y=0 :rolleyes:
CASE 2 : load and draw Just a part of an image Myimage = Launcher.Sprite.Load("Path/myimage.png") Launcher.Sprite.Clip(Myimage,Xstart,Ystart,width,height) Launcher.Sprite.Draw(Myimage, X, Y) Example I want to draw a french flag image Taken from a large image with many countries flags (Allflags.png) located in launcher/media/textures/flags. And draw it at X=20, Y=0 Info the french flag is the one betwween Canada and USA underneath Germany
The Allflags.png ![]() You can see another example Therehttp://z15.invisionfree.com/NHL04Rebuilt/i...opic=5552&st=60 Edited by Jedeash, Feb 19 2018, 10:34 AM.
|
|
"They did not know it was impossible so they did it" Mark Twain | |
![]() |
|
| Jedeash | Sep 1 2017, 01:00 PM Post #3 |
|
Charter Member
|
SOME CUTSCENES ID (more to discover and must be rechecked) 9 Player positioning Before puck drop 44 Game intro 45 Start of period 34 End of period 35 End of third period with Equality before OT 32 End of game Includes OT goal 30 3 stars 27 Timout 16 Goalie Change 13 Start of fight 14 Start of fight Goalies 58 End of fight Goalies 92 End of Fight Draw 93 End of Fight H win 94 End of Fight A Win 79 Penalty to player 37 Empty net goal 38 Goal HOME 39 first Goal (team outscored like 8-0*) Home ? 43 Goal AWAY 42 Goal POWERPLAY 40 Own goal pissed off coach (Empty net delayed Penalty ?)) 41 Own goal 77 Hat trick 78 first NHL goal or ShootoutGoal 22 Player skating or coach talking 20 Player skating 21 Player skating with ea stats :unsure: 66 player being hard checked (and not happy) 67 Coach disgusted player being checked 24 Bench (caoch clapping) or player skating 17 Goalie in front of net 25 puck on net 57 Goalie 62 Goalie stopped shootout (Home ?) 63 Goalie (has made a stop) or super stop Away 64 Goalie super save Home *Don't know the limit |
|
"They did not know it was impossible so they did it" Mark Twain | |
![]() |
|
| Vod | Sep 1 2017, 10:57 PM Post #4 |
|
Development Team
|
Good work, Jed. You've been a big help ![]() About Player IDs: There are two kinds of Player IDs. The first is the roster Player ID, which is unique for every player in the game and is used by the interface. The next is the in-game Player ID, which is used by many launcher functions. The in-game Player ID represents their in-game index. Player IDs 0-19 are the home team. IDs 20-40 are the away team. To determine the Player IDs, just open the in-game home team stats menu. The first player in the list is PlayerID 0, the next is Player ID 1 etc. Player ID 0-19 is home team players ID 0-17 Skaters ID 18,19 Goalies Player ID 20-39 is away team players ID 20-37 Skaters ID 39,40 Goalies |
| NHL 2004 Launcher | My Changelog | NHL 2004 Preservation | NHL 2004 Debugger | |
![]() |
|
| Jedeash | Sep 2 2017, 12:12 PM Post #5 |
|
Charter Member
|
Lines IDs 0 : Scoring 1 1 : Scoring 2 2 : Checking 3 3 : Checking 4 12 : 5 men PP1 (should be 4 )5 : 5 men PP2 6 : 4 men PP1 7 : 4 men PP2 8 : 4 men PK1 9 : 4 men PK2 10 : 3 men PK1 11 : 3 men PK2 12 : Hero ( i had never noticed it could be called by pressing 5) |
|
"They did not know it was impossible so they did it" Mark Twain | |
![]() |
|
| Jedeash | Sep 15 2017, 07:44 PM Post #6 |
|
Charter Member
|
Penalty IDs Pen [21] = "Penalty" ?? Pen [22] = "Penalty"?? Pen [23] = "Roughing" Pen [24] = "Cross-checking" Pen [25] = "Hooking" Pen [26] = "Tripping" Pen [27] = "Interference" Pen [28] = "Penalty" ?? Pen [29] = "Elbowing" Pen [30] = "Penalty" Pen [31] = "Penalty" ?? Pen [32] = "Holding" Pen [33] = "Obstruction" Pen [34] = "Obstruction-Hooking" Pen [35] = "Obstruction-Boarding" Pen [36] = "Obstruction-Tripping" Pen [37] = "Penalty" ?? To be completed |
|
"They did not know it was impossible so they did it" Mark Twain | |
![]() |
|
| trent | Sep 16 2017, 01:42 AM Post #7 |
|
Project Leader
|
Is there ID for that rare cutscene where player is injured and medical staff is helping him to the dressing room? |
|
My Blues 1995-1996 Season Report My Blues 1998-1999 Season Report My Flyers 1998-1999 Season Report | |
![]() |
|
| Vod | Sep 16 2017, 02:01 AM Post #8 |
|
Development Team
|
Every cutscene has an ID |
| NHL 2004 Launcher | My Changelog | NHL 2004 Preservation | NHL 2004 Debugger | |
![]() |
|
| lepiney | Sep 16 2017, 11:59 AM Post #9 |
|
Regular
![]() ![]() ![]() ![]()
|
Thanks for the explanation Jedeash and Vod... really helpful. One question: with the cutscenes IDs, does it mean I could somehow "Disable" the 'game intro' (44) and have only the 'player positioning before puck drop' (9) when a game starts? Would be nice! Don't ask why, I just can't stand this stupid intro showing highlights from a game that haven't been played yet. cheers |
![]() |
|
| Jedeash | Sep 16 2017, 12:55 PM Post #10 |
|
Charter Member
|
One easy fix would be to draw à large Black image overwrite thé vidéo to hide it. Or draw any information related to thé game... |
|
"They did not know it was impossible so they did it" Mark Twain | |
![]() |
|
| lepiney | Sep 16 2017, 01:07 PM Post #11 |
|
Regular
![]() ![]() ![]() ![]()
|
Good idea. However, is there a similar code line like this one: Launcher.Override.DisableOverlay() but for Game Intro...?! another option, would it be possible to have a video played before a game starts??? |
![]() |
|
| trent | Sep 16 2017, 01:12 PM Post #12 |
|
Project Leader
|
I always thought it could be a highlight reel from like, a preseason game (or a previously played game) by these two teams. |
|
My Blues 1995-1996 Season Report My Blues 1998-1999 Season Report My Flyers 1998-1999 Season Report | |
![]() |
|
| lepiney | Sep 16 2017, 01:19 PM Post #13 |
|
Regular
![]() ![]() ![]() ![]()
|
yes... allright. Ok, I am a bit picky, I should try to think like that... Only doesn't work when it's the first game of the (pre)season, but ok. Although, I do a lot of exhibition game just for fun also, and there it breaks a bit the game presentation imo... cheers |
![]() |
|
| trent | Sep 16 2017, 02:11 PM Post #14 |
|
Project Leader
|
There are actually three different game presentation highlight reels. |
|
My Blues 1995-1996 Season Report My Blues 1998-1999 Season Report My Flyers 1998-1999 Season Report | |
![]() |
|
| neonfish | Sep 30 2017, 12:03 PM Post #15 |
|
Charter Member
![]() ![]() ![]() ![]() ![]()
|
I have a question. Is it possible to Force the engine to use another cut scene ID instead of the intro scene ?Or stack up more cut scenes before the game play ? I am asking because I have an idea to completely redo the intro sequence of NHl 2004. Here is my idea : NHL 98-99 style intro .I like it as it is simple 1.switch intro ID for another cut scene or view for example whole stadium view with players lining up or just skating. http://img106.imagevenue.com/img.php?image...28_122_99lo.jpg we can print some team information on the screen or just lineups .At this stage we can create our own pre game commentary(maybe just generic ) and play audio during the cut scene. 2.Then switch to another cu scene to Home goalie , Print stats (possible custom commentary says goalie name maybe even based on player id if possible.) 3 switch to another cut scene to away goalie.Print stats. Then if we create custom commentary switch to he in game commentary duo and start the puck drop sequence with Jim Hughson 4.Play |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| Go to Next Page | |
| « Previous Topic · Scripts · Next Topic » |
- Pages:
- 1
- 2










![]](http://z4.ifrm.com/static/1/pip_r.png)
8:17 AM Jul 11