Giter Site home page Giter Site logo

eugeneloza / decoherence Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 7.0 207.95 MB

Project moved to https://gitlab.com/EugeneLoza/decoherence

License: GNU General Public License v3.0

Makefile 0.10% Pascal 99.18% Shell 0.28% C++ 0.35% Batchfile 0.09%
castle-game-engine freepascal game lazarus-ide rpg wizardry

decoherence's People

Contributors

captain-darko avatar devapromix avatar eugeneloza avatar gfranco93 avatar michaliskambi avatar rbkio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

decoherence's Issues

Move context to Decoherence

GAME

  • Move context unit
  • Update context unit (make context type variable)

CONSTRUCTOR

  • Context event
  • Create context element
  • Create meta context list
  • Assign context to event

Player Character

GAME:

  • Player character class (partly done)

  • Race&profession (partly done)

  • Issue commands (interface)

  • Load Race

  • Load Profession

  • Load Avatar

CONSTRUCTOR

  • Race
  • Profession
  • Avatars

Unstable map test behaviour in Constructor

constructor_map.pas
If an error encountered in map generator during a test (e.g. unable to block a map tile) the editor crashes, TEST button no longer enabled, and a SIGSEGV encountered on app close.

override "Loading..." on startup

"src/ui/opengl/castlecontrolsimages.pas":
Loading := TGrayscaleAlphaImage.Create(LoadingWidth, LoadingHeight, LoadingDepth);
Move(LoadingPixels, Loading.RawPixels^, SizeOf(LoadingPixels));
Loading.URL := 'embedded-image:/Loading';
LoadingPixels points to "src/ui/opengl/castlecontrolsimages.image_data"

interfaceelement.rescale memory leak

Memory leaks. Не могу выловить несколько memory leaks. Они не забирают много памяти и не накалпиваются со временем (вроде). Однако сильно мешают поиску будущих утечек памяти. Переписать всё с нуля, чтобы понять на каком этапе происходит сбой?
Похоже, ошибка в interfaceelement.rescale, но где именно???

Right click - switch control mode

доработать: если интерфейс не поймал клик, то смена стиля управления.
Only in travel mode

Time flow

Thread: all actors' actions in a thread. Thread suspend on pause

CRITICAL ARCHITECTURE FLAW * Interface element should rescale its onw content!

e.g.
damageOverlay.Content.base.copyxywh(self.base);
damageOverlay.Content.AnimateTo(asFadeIn);
damageOverlay.rescale;
Проблема интерфеса - parent не передаёт scale для children, как это задумывалось изначально. Это серьёзная недоработка структуры, её будет необходимо исправить. Когда-нибудь. Пока на костылях работает...

Battle mode

GAME:

  • Time flow (partly done)
  • Soft pause (partly done)
  • Hard pause (partly done)
  • Actor action
  • enemy class
  • enemy AI

CONSTRUCTOR:

  • manage enemy

Constructor - compile only changed data

Compile only changed data (keep track of?)
Or compile only current session's changes.

Warning: if you have changes from the previous sessions, they might not compile properly, use this feature only if you know what you're doing.

music

GAME:

  • Finish playlists behaviour
  • Sound behaviour

see also #19

CONSTRUCTOR:

  • manage playlists
  • manage sounds

CONTENT:

  • select music for first location

Automatic: Textures TGA -> DDS

можно просто на винде через команд лайн вызывать nvcompress
Скомпилировать на LINUX!!!

Voice Acting

CONTENT

  • Use Nikita's Voice acting
  • Finalize the test scenario
  • Record my Voice acting
  • Process my Voice acting
  • Cut my Voice acting
  • Use my Voice acting

GAME

  • Load Voice
  • Attach Voice to actors
  • Cut scenes

CONSTRUCTOR

  • Phrase
  • Phrase - sound link
  • Triggers on events

Move bugreports and todos to github

Looks like it's a good idea to move all todo's and bugs to github, so that I can track them more efficiently. Still thinking on it, but looks promising.

Get basic sounds for the game

These are

  • attack
  • hit
  • click (select character)
  • click (select action)
  • new turn
  • victory

Also:

  • handle sounds in game
  • and constructor

Send and catch events

INTERFACE:

  • Event displayer interface element
  • Event types
  • Send event
  • Listen to events
  • Attach sound to events
  • Pause on events

GAME:

  • Send events at game situations
  • Triggers

Cannot load data/interface/portrait/UNKNOWN_p01.jpg

Running the latest "Decoherence" code on Linux 64-bit (x64_64) using the latest Castle Game Engine 6.3 (from GitHub), I get an error:

Exception "EFOpenError" :
Unable to open file "/home/michalis/sources/castle-engine/decoherence/data/interface/portrait/UNKNOWN_p01.jpg"

  $000000000046F499
  $000000000046F293
  $000000000079550E  DOWNLOAD,  line 417 of ../castle-engine/src/net/castledownload.pas
  $00000000005AAC62  LOADENCODEDIMAGE,  line 4225 of ../castle-engine/src/images/castleimages.pas
  $00000000005AB046  LOADENCODEDIMAGE,  line 4251 of ../castle-engine/src/images/castleimages.pas
  $00000000005AB3C3  LOADIMAGE,  line 4294 of ../castle-engine/src/images/castleimages.pas
  $0000000000BF6394  LOADIMAGESAFE,  line 74 of decoinputoutput.pas
  $0000000000BEBC01  INITCOMPOSITEINTERFACE,  line 215 of decointerfacecomposite.pas
  $0000000000BDC24B  INITINTERFACE,  line 336 of decointerface.pas
  $0000000000466969  LOADANDINITDATA,  line 228 of decoherence.pas
  $0000000000466BF5  APPLICATIONINITIALIZE,  line 290 of decoherence.pas
  $00000000004B69E8  CASTLEENGINEINITIALIZE,  line 4629 of ../castle-engine/src/window/castlewindow.pas
  $00000000004B0D5C  OPENCORE,  line 3171 of ../castle-engine/src/window/castlewindow.pas
  $00000000004B11C1  OPEN,  line 3209 of ../castle-engine/src/window/castlewindow.pas
  $00000000004B1362  OPEN,  line 3241 of ../castle-engine/src/window/castlewindow.pas
  $00000000004B32CC  OPENANDRUN,  line 3764 of ../castle-engine/src/window/castlewindow.pas
  $000000000040BB3B  main,  line 21 of decoherence_desktop.lpr

As far as I see, there is no file named UNKNOWN* (with any case, upper or lower) in the repository, so the referenced file is just missing from the repository.

(Or do I need to run some utility to generate it? I have not found a mention of it in the README.)

I have not looked too deep in the code -- if you think this is caused by some Castle Game Engine bug, or it's something specific to Linux (it may be -- on a standard Linux filesystems, filenames are case-sensitive), then please let me know, I will debug it more:)

Subsequently, the loading seems to take forever, I look at the loading animation forever (I assume it's caused by the above bug).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.