Giter Club home page Giter Club logo

Comments (9)

 avatar commented on May 24, 2024

//temporary fix: startscenectrl.cpp
if(event.key.code == sf::Keyboard::Return){// && startscene.getPart() == 1) {
sf::String &pName = startscene.getpName();
if(pName.isEmpty()) {
pName = "Player";
}
view.draw(View::frame);
startscene.delLoop1();
_next_gs = new AnimationCtrl(new View::Animations::WinAnim(View::frame.getTexture(), false));
return GameStatus::NEXT;
}

NOTE: When I press Enter for frames 1 through 5 the name screen shows up. For frame 6("what is your name?") if I never press Space then the name screen shows up when I press Enter.

from opmon-archive.

milkyroute avatar milkyroute commented on May 24, 2024

As I see it, the problem seems coming from the animation. I will check this out this week-end.

from opmon-archive.

 avatar commented on May 24, 2024

The problem seems to be coming from the variable part in StartScene.cpp.

A new branch was created: https://github.com/cyrioncentori/OpMon/tree/fix39

from opmon-archive.

GReaperEx avatar GReaperEx commented on May 24, 2024

Does the bug still persist? I'm asking because there's no such problem when I compile the game from source in Ubuntu. If it does, maybe it's some form of undefined or implementation-defined behaviour that's only present with Windows 8.1

For example, I have noticed that SDL handles key-presses slightly differently in Windows vs Linux, by always sending key-ups immediately after key-downs for many keys (in Linux). Maybe SFML has a similar problem...

from opmon-archive.

navet56 avatar navet56 commented on May 24, 2024

This bug is specific to some Windows PCs, and yes the problem probably comes from SFML but can maybe be adjusted by changing the code, we'll be looking into the problem soon.

from opmon-archive.

milkyroute avatar milkyroute commented on May 24, 2024

@rjphares Can you try to compile the game now ? Is the bug still here ?

from opmon-archive.

 avatar commented on May 24, 2024

After a couple compilation errors (similar to the build before the last build - had to make adjustments to WINMAIN and commented out OpMon version) I was able to compile successfully.

Here are the log errors:
[T = 312] - Error n°1 : Failed to load music: audio/music/wildbattle.ogg
[T = 1290] - Error n°2 : Failed to load resource: backgrounds/dialog/battle_dialog.png
[T = 1297] - Error n°3 : Failed to load resource: sprites/misc/arrBattle.png
[T = 1304] - Error n°4 : Failed to load resource: sprites/chara/cyrion/cyrion.png
[T = 1312] - Error n°5 : Failed to load resource: sprites/battle/square_2.png
[T = 1323] - Error n°6 : Failed to load resource: sprites/battle/shadow_2.png
[T = 1328] - Error n°7 : Failed to load resource: sprites/battle/shadow_1.png
[T = 1344] - Error n°8 : Failed to load resource: backgrounds/dialog/attacks_dialog.png
[T = 1350] - Error n°9 : Failed to load resource: sprites/battle/types/BAD.png
[T = 1354] - Error n°10 : Failed to load resource: sprites/battle/types/BUG.png
[T = 1357] - Error n°11 : Failed to load resource: sprites/battle/types/BURNING.png
[T = 1361] - Error n°12 : Failed to load resource: sprites/battle/types/COLD.png
[T = 1364] - Error n°13 : Failed to load resource: sprites/battle/types/DRAGON.png
[T = 1367] - Error n°14 : Failed to load resource: sprites/battle/types/ELECTRON.png
[T = 1372] - Error n°15 : Failed to load resource: sprites/battle/types/FIGHT.png
[T = 1376] - Error n°16 : Failed to load resource: sprites/battle/types/GHOST.png
[T = 1379] - Error n°17 : Failed to load resource: sprites/battle/types/GROUND.png
[T = 1382] - Error n°18 : Failed to load resource: sprites/battle/types/LIQUID.png
[T = 1386] - Error n°19 : Failed to load resource: sprites/battle/types/MAGIC.png
[T = 1389] - Error n°20 : Failed to load resource: sprites/battle/types/MENTAL.png
[T = 1394] - Error n°21 : Failed to load resource: sprites/battle/types/METAL.png
[T = 1400] - Too many errors. Closing program. Please verify your installation. If the problems persists, warn us.
[T = 1400] - Fatal error. Total errors : 21

from opmon-archive.

milkyroute avatar milkyroute commented on May 24, 2024

This problem comes from the resources, your "data" repertory is too old. I think you forgot to update it.

from opmon-archive.

 avatar commented on May 24, 2024

I feel stupid. Should have known better. But it works now. Thank you.

from opmon-archive.

Related Issues (20)

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.