Comments (3)
The gui crashed when I try to start a new game
C:\repository\GitHub\HearthSim\SabberStone\SabberStoneCore\src\Model\Zones\Zone.cs
public ReadOnlySpan<T> GetSpan()
{
return new ReadOnlySpan<T>(_entities, 0, _count);
}
from sabberstone.
It can be fixed by reference System.Runtime.CompilerServices.Unsafe from NuGet for SabberStoneGui project.
from sabberstone.
By the way, I also found you have a no span build option,
I have tried to build no span, but build failed.
1>------ Build started: Project: SabberStoneCore, Configuration: NoSpan Any CPU ------
1>C:\Program Files\dotnet\sdk\3.0.100-preview-010184\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(151,5): message NETSDK1057: You are using a preview version of .NET Core. See: https://aka.ms/dotnet-core-preview
1>src\CardSets\Standard\TrollCardsGen.cs(30,7,30,34): warning CS0105: The using directive for 'SabberStoneCore.Model.Zones' appeared previously in this namespace
1>src\Auras\SummoningPortalAura.cs(85,23,85,30): warning CS0108: 'SummoningPortalAura.DeApply(IPlayable)' hides inherited member 'Aura.DeApply(IPlayable)'. Use the new keyword if hiding was intended.
1>src\Loader\TargetingPredicates.cs(120,36,120,61): error CS0029: Cannot implicitly convert type 'SabberStoneCore.Model.Zones.ReadOnlySpan<SabberStoneCore.Model.Entities.IPlayable>' to 'System.ReadOnlySpan<SabberStoneCore.Model.Entities.IPlayable>'
1>src\Loader\TargetingPredicates.cs(227,32,227,53): error CS0029: Cannot implicitly convert type 'SabberStoneCore.Model.Zones.ReadOnlySpan<SabberStoneCore.Model.Entities.Minion>' to 'System.ReadOnlySpan<SabberStoneCore.Model.Entities.Minion>'
1>src\Tasks\ComplexTasks.cs(459,5,459,28): error CS0104: 'ReadOnlySpan<>' is an ambiguous reference between 'SabberStoneCore.Model.Zones.ReadOnlySpan' and 'System.ReadOnlySpan'
1>src\Loader\CardLoader.cs(110,39,110,84): warning CS0618: 'Enum.ToString(IFormatProvider)' is obsolete: 'The provider argument is not used. Please use ToString().'
1>src\Model\Zones\Zone.cs(192,15,192,30): error CS1729: 'ReadOnlySpan' does not contain a constructor that takes 3 arguments
1>src\CardSets\Standard\TrollCardsGen.cs(805,16,805,42): warning CS0618: 'AdaptiveCostEffectObsolete' is obsolete: 'Not used any more'
1>src\CardSets\Standard\TrollCardsGen.cs(1180,6,1180,12): error CS0246: The type or namespace name 'Random' could not be found (are you missing a using directive or an assembly reference?)
1>src\CardSets\Standard\TrollCardsGen.cs(1855,25,1855,29): error CS0103: The name 'Math' does not exist in the current context
1>src\CardSets\Standard\TrollCardsGen.cs(1860,24,1860,28): error CS0103: The name 'Math' does not exist in the current context
1>src\CardSets\LootapaloozaCardsGen.cs(2789,16,2789,42): warning CS0618: 'AdaptiveCostEffectObsolete' is obsolete: 'Not used any more'
1>src\CardSets\IcecrownCardsGen.cs(2906,16,2906,42): warning CS0618: 'AdaptiveCostEffectObsolete' is obsolete: 'Not used any more'
1>src\Tasks\SimpleTasks\IncludeTask.cs(263,39,263,46): error CS1061: 'ReadOnlySpan' does not contain a definition for 'ToArray' and no accessible extension method 'ToArray' accepting a first argument of type 'ReadOnlySpan' could be found (are you missing a using directive or an assembly reference?)
1>Done building project "SabberStoneCore.csproj" -- FAILED.
2>------ Build started: Project: SabberStoneGui, Configuration: NoSpan Any CPU ------
2> SabberStoneGui -> C:\repository\GitHub\HearthSim\SabberStone\SabberStoneGui\bin\NoSpan\SabberStoneGui.exe
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
from sabberstone.
Related Issues (20)
- Build issue HOT 3
- bug of SabberStoneGui HOT 2
- Can't run a game on GUI. HOT 1
- Unix - antlr4 doesn't suceed to parse the HSGrammar.g4
- Molten Blade cost doesn't change upon transformation HOT 3
- I don't know about running code with game HOT 1
- Bug in playing cards when board is full (CoreAI) HOT 12
- Upcoming mechanic changes to Multi-Target Cards HOT 1
- Some wiki pages are not accessible HOT 5
- How to simulate the game board state, and run for analyze HOT 4
- Load the card with specific language HOT 6
- Add global exception handler for SabberStoneGui HOT 1
- Game Point of View of Player HOT 3
- How to use Unity3D client? HOT 1
- Casting error from Enchantment to ICharacter. HOT 5
- You only use ATK.Effect when tag == GameTag.ATK, what is the reason? HOT 5
- Cardset for the new Classic mode of Hearthstone HOT 5
- Some cards from EXPERT1 (classic) are not implemented? HOT 4
- Can't run SabberStoneConsole, dotnet.exe error 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 sabberstone.