Comments (20)
Thanks! Turns out one accent in the name of a folder was killing visual studio
from chess-challenge.
I m think game cant load files (piece images, fonts, etc)
from chess-challenge.
That looks like a font issue. If I'm not wrong, the chess pieces are text too and they're getting hidden because the font doesn't work for you for some reason.
from chess-challenge.
That looks like a font issue. If I'm not wrong, the chess pieces are text too and they're getting hidden because the font doesn't work for you for some reason.
I m try to delete font files (they inside resource folder) and get same font, but my pieces didn't disappear. Still the problem is reading the file.
from chess-challenge.
Try check YOURE_REPOS_FOLDER\Chess-Challenge\Chess-Challenge\bin\Debug\net6.0\resources
and tell me what's in it
from chess-challenge.
Ok turns out I was wrong the chess pieces are all in a png. But yeah as creastive said it looks like there's something wrong with the resources.
from chess-challenge.
after net6.0 there is no resources
Try check
YOURE_REPOS_FOLDER\Chess-Challenge\Chess-Challenge\bin\Debug\net6.0\resources
and tell me what's in it
from chess-challenge.
after net6.0 there is no resources
Try check
YOURE_REPOS_FOLDER\Chess-Challenge\Chess-Challenge\bin\Debug\net6.0\resources
and tell me what's in it
Open VS and find OPENSANS-SEMIBOLD.ttf
, sdf.fs
, Fens.txt
and Pieces.png
in solution explorer
then for each file look down, set "Build action" to "Embedded resource" and set "copy" to "always copy", then try run again
from chess-challenge.
i found the files but how do i do what u said?
from chess-challenge.
after net6.0 there is no resources
Try check
YOURE_REPOS_FOLDER\Chess-Challenge\Chess-Challenge\bin\Debug\net6.0\resources
and tell me what's in itOpen VS and find
OPENSANS-SEMIBOLD.ttf
,sdf.fs
,Fens.txt
andPieces.png
in solution explorer then for each file look down, set "Build action" to "Embedded resource" and set "copy" to "always copy", then try run again
textures and fonts still do not work after setting params you mentioned
from chess-challenge.
Then just copy them manually
copy folder repos\Chess-Challenge\Chess-Challenge\resources
to repos\Chess-Challenge\Chess-Challenge\bin\Debug\net6.0\resources
from chess-challenge.
Still does not work. Ive tried to reinstall project too
from chess-challenge.
tried it didnt work
from chess-challenge.
strange... Do you have Chess-Challenge\Chess-Challenge\bin\Debug\net6.0\resources\Pieces.png
file?
from chess-challenge.
yes
from chess-challenge.
launch \Chess-Challenge\Chess-Challenge\bin\Debug\net6.0\Chess-Challenge.exe
from chess-challenge.
I have a theory that VS simply doesn't have enough permissions to copy the files and read them after the program starts.
from chess-challenge.
your theory is wrong. I have solved it but idk what was the problem:
- Path is too long
- Path includes non english letters
After moving main dir to root folder it loads correctly
from chess-challenge.
After moving main dir to root folder it loads correctly
What exactly do you mean by that? I'm having this same issue and nothing i do seems to do anything
from chess-challenge.
Check the entire path to the project, and in the project, if there are bad characters in the paths it could cause the resources, fonts, sprites, ect... not to load properly
from chess-challenge.
Related Issues (20)
- Canβt open board HOT 5
- board.cs has an error. HOT 4
- Significant performance boost to IsDraw method HOT 3
- Copying boards/overriding fen strings HOT 2
- Each character in string counts as token HOT 3
- Please select a valid startup item
- Black pawn appearing on h4
- Build errors when trying to run MyBot without changing anything from when downloading it. HOT 1
- Bot Brain Capacity change. HOT 2
- SquareIsAttackedByOpponent is returning true, although the square isn't attacked HOT 1
- Game over every time, even when MyBot won the round. HOT 6
- Final knockout tournament clarification HOT 2
- HOw to set custom Chess position to test bot HOT 2
- Run codes from strings in C# HOT 8
- Submission Deadline Clarification HOT 1
- [Critical Bug] The Token Counter is bugged HOT 5
- bot submission size limit issue HOT 1
- Is there any update on competition? HOT 14
- PGN parser
- Segmentation fault (core dumped) when launching Chess-Challenge v1.20 on Ubuntu 20.04 HOT 1
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 chess-challenge.