Comments (9)
//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.
As I see it, the problem seems coming from the animation. I will check this out this week-end.
from opmon-archive.
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.
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.
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.
@rjphares Can you try to compile the game now ? Is the bug still here ?
from opmon-archive.
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.
This problem comes from the resources, your "data" repertory is too old. I think you forgot to update it.
from opmon-archive.
I feel stupid. Should have known better. But it works now. Thank you.
from opmon-archive.
Related Issues (20)
- Change how the animations are stored HOT 2
- Add a confirmation before quitting the game HOT 2
- Tools for non-programmers
- Documentation HOT 1
- JSON subdivision HOT 3
- Modern CMake HOT 1
- Remove the data folder from this repo HOT 6
- Build error on Mac OS X HOT 2
- Doors sounds only work one direction HOT 4
- Screen Transition Hitbox Issue HOT 2
- Decouple and Generalize Event System HOT 1
- List the assets to load + tilesets in json HOT 1
- Issue with the "ç" character HOT 2
- Warnings at compilation HOT 1
- Replace handleError calls by exceptions
- Fix "include spaghettis"
- Line size calculation should be done with the actual text width and not the number of characters
- Use two lines of dialogues instead of three
- Dialogue box should automatically fit the screen size and resolution HOT 1
- Centralize design decisions HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opmon-archive.