jcageman / d2mapapi

d2 map rest API to retrieve the map layout per area given a map seed
69 stars 55 forks source link

I dont understand usage ejample #15

Closed Dacio11 closed 2 years ago

Dacio11 commented 2 years ago

i download visual 2022 but i dont know how to configure, help pls

jcageman commented 2 years ago

image

To run locally from source edit launchSettings.json like in the screenshot. Use the D2Map.Api project as startup project (right click, set as startup). Hope that clarifies it? The readme examples are made with the binaries in mind, hence you can also download from the release folder directly and just run that via commandline: https://github.com/jcageman/d2mapapi/releases/tag/1.2

Dacio11 commented 2 years ago

Captura de pantalla (1)

is correct, what i have to do now? thanks!

jcageman commented 2 years ago

Yes looks good,except it starts iis express, hence switch it to d2map.api! Note the application is hosted on port 8080

Dacio11 commented 2 years ago

Captura de pantalla (2)

the d2 version is 1.14d

jcageman commented 2 years ago

It should be 1.13c and you can modify appsettings.json

Dacio11 commented 2 years ago

now is 1.13c, i edited appsettings.json, I installed the game in c:\diablo II this time, still same error.

System.Exception HResult=0x80131500 Mensaje = Provided invalid diablo 2 directory: <C:\Diablo II> Origen = D2Map.Core Seguimiento de la pila: at D2Map.Core.Extensions.CoreExtensions.RegisterCoreServices(IServiceCollection services, IConfiguration config) in C:\Users\PC\Desktop\d2mapapi-1.2\D2Map.Core\Extensions\CoreExtensions.cs:line 15 at D2Map.Api.Startup.ConfigureServices(IServiceCollection services) in C:\Users\PC\Desktop\d2mapapi-1.2\D2Map.Api\Startup.cs:line 36 at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services) at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>cDisplayClass9_0.gStartup|0(IServiceCollection serviceCollection) at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services) at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>cDisplayClass8_0.b0(IServiceCollection services) at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.UseStartup(Type startupType, HostBuilderContext context, IServiceCollection services, Object instance) at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.<>c__DisplayClass13_0.b__0(HostBuilderContext context, IServiceCollection services) at Microsoft.Extensions.Hosting.HostBuilder.CreateServiceProvider() at Microsoft.Extensions.Hosting.HostBuilder.Build() at D2Map.Api.Program.Main(String[] args) in C:\Users\PC\Desktop\d2mapapi-1.2\D2Map.Api\Program.cs:line 16

jcageman commented 2 years ago

image

Almost there! I suspect you kept the < and > characters.

Dacio11 commented 2 years ago

Yea, now works, but how can i see the map ?

Captura de pantalla (4)

jcageman commented 2 years ago

I haven't build a visualization tool. This only exposes an API (see readme) that returns the data which could be visualized

Dacio11 commented 2 years ago

and how i can visualize that? in mapapi 1.0 I could see the map. I already download tableau public, hope works

jcageman commented 2 years ago

The API response in 1.2 is same as in 1.0