GithubHelp home page GithubHelp logo

Comments (3)

chucklu avatar chucklu commented on May 21, 2024

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);
		}

image

from sabberstone.

chucklu avatar chucklu commented on May 21, 2024

It can be fixed by reference System.Runtime.CompilerServices.Unsafe from NuGet for SabberStoneGui project.

from sabberstone.

chucklu avatar chucklu commented on May 21, 2024

By the way, I also found you have a no span build option,
image
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)

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.