Skip to content

Latest commit

 

History

History
144 lines (125 loc) · 10.9 KB

README.md

File metadata and controls

144 lines (125 loc) · 10.9 KB

FF7 - Fenrir

Web based game engine for FF7 - Work-in-progress

FF7 Fenrir

We all love FF7, there are lots of mods and an amazing community. As part of my personal foray into 3D graphics, I wanted to work to better understand the assets, data and logic, ideally with result of creating a new Game Engine that runs using FF7 data.

Progress:

  • Field - Playable - Mostly complete
  • Menus - Mostly complete, but uses debug data
  • Battle - My current focus. 👷 Action sequences | ✅ Cameras | ✅ Enemy AI | ✴️ Stack and queue | ✅ Menus | ✅ Models & Animation | 🔲 Magic and visual effects

Most fields are playable. Ideally it will use the in game assets (.lgp's etc), but I will start using generated json fields and pngs for a start.

I've also added a huge amount of functionality to https://github.com/dangarfield/kujata also - Web-friendly FF7 assets

Live Link - https://ff7-fenrir.netlify.app/

Installation

OP Code Completion Status

See the OPS_CODES_FIELD_README.md for field progress

See the OPS_CODES_BATTLE_CAMERA_README.md for battle camera progress

See the OPS_CODES_ACTION_SEQUENCE_README.md for battle camera progress

Thanks

  • Picklejar76 and his work with https://github.com/picklejar76/kujata and https://github.com/picklejar76/kujata-data for game assets and services
  • Myst6re and his work with https://github.com/myst6re/makoureactor for understanding a huge amount of the field logic and field op code behaviours
  • All of the Tsunamods Discord and Qhimm community for their extensive work so far
  • Many others as I begin to work through further

Progress - Field

  • ✅ Extract model assets from kujata
  • ✅ Extract field data - Added a lot more to kujata
  • ✅ Render walkmesh and models
  • ✅ Align walkmesh with static renders (Some mismatches on some fields. although this appears to be simple lateral movement)
  • ✅ Extract layer by layer field data and add to kujata-data
  • ✅ Apply 3D occlussion culling using Perspective Camera approach (may change approach to multiple blended orthogonal approaches) - Roughly right
  • ✅ Orientation and scale of models on walkmesh (About right)
  • ✅ Control character on screen
  • ✅ Crop, zoom and centering for non-default viewport fields (320x240)
  • ✅ Viewport follows character on screen
  • ✅ Triggers and gateways have collisions and behaviours
  • ✅ Model collision detection and talking area collision
  • ✅ Refactor into cleaner code
  • ✅ Implement remaining trigger behaviours
  • ✅ Extract kernel.bin(s) to helpful format
  • ✅ Extract window.bin to helpful format
  • ✅ Extract window.bin individual paletted pngs
  • ✅ Field position helpers -> Hand and animated arrows (not figured out scale or gatewayArrow positions yet)
  • ✅ Field screen fades and action locks (menu, talk, gateway transition etc)
  • ✅ Field to field transitions
  • ✅ Visualise asset loading progress
  • ✅ Dialog and choices - Just FLASH and RAINBOW and transparent windows todo another day
  • ✅ Add 'full screen' window.config.sizing.factor config to expand to all available space
  • ✅ Fix all remaining background imagery bugs (dark spots - DONE, layer 2/3 - DONE, blending/typeTrans - DONE with 1 bug)
  • ✅ Add keyboard instruction image
  • ✅ Begin kernel initial and save data information
  • ✅ Do something about lazing loading windowTextures...
  • ✅ Begin properly implementing field op codes - 93% complete. 1 -> I can do later. 3 -> Character graphics ops, undocumented / graphics model changes. 2 -> Undocumented / unknown. 12 -> Paletting, eg different approach required, eg custom shader
  • ✅ Update savemap with all non op-code data, movements, directions, game time, steps etc
  • ✅ Implement proper save, import, export mechanism
  • 🔲 Add visual savemap debug mechanism
  • ✅ Ensure all bg textures are loaded before fadeIn of fields
  • ✅ Add visual script progress debug mechanism
  • ✅ Fix npc movement speed, direction and z raycasting
  • ✅ Fix player direction direction (seems to change based on keys pressed)
  • ✅ Switch event loop to use render loop rather than individual async methods (performance - tin_1). I did this, but the performance was worse and there was more of a stutter in the background on / off. Replacing console.log solves all performance issues
  • ✅ Add animation root translation the kujata models and apply in game
  • ✅ Tweens are not paused on fade / eg window.anim.clock.stop()
  • ✅ Doors models don't have correct textures / look right - bybf (door w/ lights)
  • ✅ Save model doesn't rotate
  • 🔲 Many broken field models and animations. Mostly seem to be inanimate objects, bydd (gold chest) - Investigate in kujata.
  • 🔲 rootmap models aren't correct
  • ✅ Gold chest seems to have a shine (?) animation permanently, but not in the op codes
  • ✅ Add directional lighting to each model as per flevel, rather than general downlight. Implemented roughly, but there is a bug for per model lighting based on threejs limitations
  • ✅ Sound loops metadata needs to be extracted properly
  • ✅ Adjust ray casting so it is not the centre point, eg, no side-to-side movement on 'thin' walkmesh corridors
  • ✅ Slippability sometimes looks very jagged
  • ✅ Adjust all lines / gateways to 'cross' the in the required direction to trigger, instead of simple proximity check
  • ✅ Relook at go, go 1x, go away. Save crystal in nmkin_4 triggers muliple go 1x
  • 🔲 Deal with a few misaligned fields (nmkin_2,3,4)
  • ✅ Decontruct Moviecamera.lgp, interpret camera movements and implement
  • ✅ Implement / restrict camera movement by implementing the camera range (mds5_3, move_f)
  • 🔲 Try and use the background images to cull the entity objects
  • 🔲 Need to fix / properly implement animations that reset to previous state
  • 🔲 Some animations stop mid-walk
  • ✅ Need to implement SHAKE properly
  • ✅ Figure out when player movement doesn't move the camera at all. eg, md1stin, cargoin, think this should be done now
  • 🔲 Figure out relative priorities of LINE and COLLISION / TALK triggered scripts
  • ✅ Investigation of parallax (eg, mds5_4). Not 100% perfect yet midgal)
  • 🔲 Fix and finalise UInt Int arrays math for 1 and 2 byte savemap banks
  • 🔲 Investigation of moveable washmesh (eg elevators, dolphin minigame)
  • 🔲 Basic sounds, including collisions, triggers, talk with objects (eg, anything not from op codes)
  • 🔲 Document and draw out the event loop logic
  • 🔲 Reimplement the field loop in a official way, looping through 8 ops per script
  • 🔲 Movement tweens should 'pause' when the op is not called
  • ✅ MOVE etc op codes should follow walkmesh more closely on a frame by frame basis - blin69_1 - game moment 308
  • 🔲 Investigate animation reset states, document and implement
  • 🔲 Still need to improve background image rendering - mds6_22. Need to go through makou reactor line by line to get this all right as its horriby wrong still in some places
  • 🔲 field fades to white then trnsitions - mds6_1, ealin_12
  • ✅ NPC walk (moveEntity) speed is wrong
  • 🔲 NPC walk (moveEntity) JOIN and LEAVE speed needs to re implemented
  • 🔲 Add rather than hardcode collision and talk distances
  • 🔲 Line, gateway and entity collisions should really be in the main rendering loop rather than player movement
  • 🔲 nivl_b1 - Game moment 376 is a real mess with walkmesh, and strangely, camera positioning
  • 🔲 Get jump height right - Game moment 400 - ujunon2
  • 🔲 Ensure talk, collision & other entity scripts can only execute one at a time
  • 🔲 Should check all if not at least which scroll commands are instant no wait (1 frame exec, command continues to execute in subsequent frames, field command stacks continue), instant with wait (async), sync
  • 🔲 Need to check that JUMP animations are not broken
  • ✅ Ensure PHS menu action at the end of midgar ensures that there are at least 3 people in the group
  • 🔲 Camera movement op codes are not 100% perfect
  • 🔲 Borderless texts show line below characters
  • 🔲 Multi line text writes all, rather that just what is visible
  • ✅ Multi page choices doesn't show the cursor
  • 🔲 Animation reset states aren't 100% correct
  • ✅ Fades aren't perfect - Should be good now, wiki updated with findingsdd
  • 🔲 Field pointer sizes are wrong
  • 🔲 Many gateway pointers are missing
  • ✅ Implement KAWAI graphic effects
  • 🔲 Offsets are not 100% - mds7_w2 -> save, pillar_3, mtnvl3
  • 🔲 Have assumed all movies are disc1, need to improve
  • 🔲 ASK pointer shadow is too dark
  • 🔲 BUG: blin66_5 cloud anim not running
  • 🔲 Implement remaining difficult op codes
  • ✅ Add blinking eyes