These are chat archives for Nethereum/Nethereum

20th
Jun 2017
0x0AB
@0x0AB
Jun 20 2017 09:47 UTC
just to bump my issue from yesterday, I tried everything but I cant have chrome + metamask working with flappyeth
running fine with Firefox
ether9
@ether9
Jun 20 2017 14:17 UTC
How do I use Nethereum? I have downloaded the dlls in the unity pack
The type or namespace name 'Web3' could not be found (are you missing a using directive or an assembly reference?)
I am not using unity3d, how do you reference Web3 obj?
Juan Blanco
@juanfranblanco
Jun 20 2017 14:23 UTC
@MoebiusAudio thanks will look into it. Everyone that had "test it / played" were using also Chrome and no reports on that side. Ill wait and see if anybody else has an issue <<confused>>
@ether9 if you are not using unity, just use the nuget packages
there is no web3 for unity, as it has a different way to do the rpc calls
ether9
@ether9
Jun 20 2017 15:26 UTC
I can't use nuget
Juan Blanco
@juanfranblanco
Jun 20 2017 15:27 UTC
?
ether9
@ether9
Jun 20 2017 15:27 UTC
I installed Visual Studio 2017 and it doesn't have nuget package manager
can't I just use the dlls?
Juan Blanco
@juanfranblanco
Jun 20 2017 15:27 UTC
right click on your project
add nuget package
ether9
@ether9
Jun 20 2017 15:28 UTC
right click sln?
Juan Blanco
@juanfranblanco
Jun 20 2017 15:28 UTC
no the project
the nugets contain dlls, but you should not use those in isolation, as the nuget contains information of all the dependencies
similarly to when you install a package using npm
ether9
@ether9
Jun 20 2017 15:30 UTC
nonuget.png
Juan Blanco
@juanfranblanco
Jun 20 2017 15:30 UTC
you need to create a project
ether9
@ether9
Jun 20 2017 15:32 UTC
the project I wanted to add nethereum to doesn't use an sln and I don't normally use visual studio
so is there no way to just get some dlls and reference those?
Juan Blanco
@juanfranblanco
Jun 20 2017 15:33 UTC
a solution is a container of projects in .net. As you organise components in different projects depending of the type of component
well just open your project in visual studio
or if you are using .net core you can add the reference directly on the csproj file
and do dotnet restore
ether9
@ether9
Jun 20 2017 15:35 UTC
I have a csproj file
Juan Blanco
@juanfranblanco
Jun 20 2017 15:35 UTC
what version of .net are you targetting?
can you open that csproj file in visual studio (it will be simpler than the command line)
ether9
@ether9
Jun 20 2017 15:35 UTC
I think 4.something
Juan Blanco
@juanfranblanco
Jun 20 2017 15:36 UTC
well open it with vs2017 and then it will do a conversion for you (if it is old)
from there you can add your nuget packages to it
ether9
@ether9
Jun 20 2017 15:38 UTC
can you use it with mono as well?
Juan Blanco
@juanfranblanco
Jun 20 2017 15:38 UTC
yep
ether9
@ether9
Jun 20 2017 15:38 UTC
cool
Juan Blanco
@juanfranblanco
Jun 20 2017 15:39 UTC
but things are moving to .net core
ether9
@ether9
Jun 20 2017 15:39 UTC
what's .net core?
Juan Blanco
@juanfranblanco
Jun 20 2017 15:39 UTC
netstandard
the "new" cross platform .net https://www.microsoft.com/net/core
ether9
@ether9
Jun 20 2017 15:40 UTC
ahhh
so will that mean it won't work on Mono?
Juan Blanco
@juanfranblanco
Jun 20 2017 15:40 UTC
it does work on Mono
all the libraries are netstandard 1.1
ether9
@ether9
Jun 20 2017 15:41 UTC
ok cool
and above
ether9
@ether9
Jun 20 2017 15:41 UTC
I think I tried to install the nuget file in visual studio 2015 but it said it required a new version, so I installed 2017
but it has no nuget package manager or I don't know how to use it
Juan Blanco
@juanfranblanco
Jun 20 2017 15:43 UTC
ah got you.. yes it should be fine with vs2017
ether9
@ether9
Jun 20 2017 15:43 UTC
Will I need to use visual studio though? why can't I just install it and use notepad++
Juan Blanco
@juanfranblanco
Jun 20 2017 15:43 UTC
well you can
or use vscode
ether9
@ether9
Jun 20 2017 15:44 UTC
I use mono to compile at runtime on production server so no need for IDE
Juan Blanco
@juanfranblanco
Jun 20 2017 15:44 UTC
it will be better
yes but to get started
i would not just use notepad
ether9
@ether9
Jun 20 2017 15:46 UTC
don't like this new visual studio, don't even know how to create a project from existing code :/
Juan Blanco
@juanfranblanco
Jun 20 2017 15:46 UTC
if you have csproj file already just open that with vs2017
or you can just add new project
if you just want to use the command line
install .net core
ether9
@ether9
Jun 20 2017 15:47 UTC
I only have a bunch of .cs files
and some dlls
Juan Blanco
@juanfranblanco
Jun 20 2017 15:48 UTC
well that will do
ether9
@ether9
Jun 20 2017 15:51 UTC
I'll try netcore
when I make a new project in inside my working directory it doesn't show the files in the solution explorer
Juan Blanco
@juanfranblanco
Jun 20 2017 15:52 UTC
you need add existing files
to the project
a solution is a container of projects
ether9
@ether9
Jun 20 2017 15:54 UTC
yeah I understand that but it won't let me
I try to create a new project inside the solution and it won't let me click "ok"
my solution has 0 projects
Juan Blanco
@juanfranblanco
Jun 20 2017 15:57 UTC
??
If you click on the solution
right click you will see the option to Add
from there you can add new project
existing project
if you have an existing project
select that one
if you want to create one..
select the one you want
ether9
@ether9
Jun 20 2017 15:58 UTC
if I do that it wants .dsp or .vsp files
don't have those files
Juan Blanco
@juanfranblanco
Jun 20 2017 15:58 UTC
dsp?
vsp?
ether9
@ether9
Jun 20 2017 15:58 UTC
I will SS
vcp sorry
Juan Blanco
@juanfranblanco
Jun 20 2017 15:59 UTC
you can add any project format
blob
ether9
@ether9
Jun 20 2017 16:01 UTC
you have a lot more options that I do
Juan Blanco
@juanfranblanco
Jun 20 2017 16:02 UTC
that is because I installed everything :D
ether9
@ether9
Jun 20 2017 16:03 UTC
yeah I may need to reinstall
Juan Blanco
@juanfranblanco
Jun 20 2017 16:03 UTC
the new version of visual studio allows to select the installations
you may have missed something
but simplest way if you have a csproj file
ether9
@ether9
Jun 20 2017 16:04 UTC
newproject.png
Juan Blanco
@juanfranblanco
Jun 20 2017 16:04 UTC
just open that from explorer with vs2017.. .net should have been installed by defualt
ether9
@ether9
Jun 20 2017 16:04 UTC
thats the screen when I try to create a new project in the new solution
I have netcore now
Juan Blanco
@juanfranblanco
Jun 20 2017 16:05 UTC
ah that is an issue in your installation
ether9
@ether9
Jun 20 2017 16:05 UTC
yeah I thought so
:/
I will reinstall
ether9
@ether9
Jun 20 2017 16:06 UTC
I think when I installed I got an error due to low disk space
Juan Blanco
@juanfranblanco
Jun 20 2017 16:06 UTC
check that ^^
ah..
ether9
@ether9
Jun 20 2017 16:06 UTC
I will uninstall it now
Juan Blanco
@juanfranblanco
Jun 20 2017 16:07 UTC
you may get away with just intallating additions
ether9
@ether9
Jun 20 2017 16:07 UTC
I want to make some stuff with Ethereum :D
Juan Blanco
@juanfranblanco
Jun 20 2017 16:07 UTC
but if you got an error
ether9
@ether9
Jun 20 2017 16:07 UTC
wish I bought some last year when it was cheaper
Juan Blanco
@juanfranblanco
Jun 20 2017 16:07 UTC
:D
ether9
@ether9
Jun 20 2017 16:07 UTC
I have 20k test ether tho :D
Juan Blanco
@juanfranblanco
Jun 20 2017 16:08 UTC
he he it will be better if they were from the mainet
once you get sorted the visual studio installation it wil be much simpler with the IDE
ether9
@ether9
Jun 20 2017 16:10 UTC
Yeah it would be :D, I got 20k because I made a script to get it from the testnet faucet and left it running while I was sleeping
Juan Blanco
@juanfranblanco
Jun 20 2017 16:10 UTC
from there just ping here, check the tutorials and see what you need
ether9
@ether9
Jun 20 2017 16:11 UTC
yeah I am sure it will work with a proper visual studio
I have seen the tutorial videos on youtube
Juan Blanco
@juanfranblanco
Jun 20 2017 16:12 UTC
ah cool, well it all depends what you want to do, but visual studio helps if you want to expand to things like mobile, web, etc
well helps.., it will be rather hard to use Xamarin without visual studio
ether9
@ether9
Jun 20 2017 16:12 UTC
I'm interested in testing it out for a game/modification
Juan Blanco
@juanfranblanco
Jun 20 2017 16:13 UTC
ok, to mainly do the modelling
"modelling" as in testing
ether9
@ether9
Jun 20 2017 16:14 UTC
Do you know if latency will be an issue when using ethereum? or Gas Prices?
Juan Blanco
@juanfranblanco
Jun 20 2017 16:14 UTC
well, at the moment transactions in ethereum are around 12 seconds, and of course gas cost is something to consider
as things can get rather costly
ether9
@ether9
Jun 20 2017 16:15 UTC
only set (modified) transactions are 12 seconds though right?
Juan Blanco
@juanfranblanco
Jun 20 2017 16:15 UTC
oh yes, (i see what yo mean), you can query the state any time
the latency is based on where you have installed your client
for example for the sample game I am poiting to Infura
ether9
@ether9
Jun 20 2017 16:16 UTC
Ok
Juan Blanco
@juanfranblanco
Jun 20 2017 16:16 UTC
but you can point it to your own hosted client
ether9
@ether9
Jun 20 2017 16:16 UTC
I forget what Infura is :O
Juan Blanco
@juanfranblanco
Jun 20 2017 16:16 UTC
infura provides a public node / client so you don't need to install it locally
ether9
@ether9
Jun 20 2017 16:17 UTC
ahh, do you need to pay?
Juan Blanco
@juanfranblanco
Jun 20 2017 16:17 UTC
it is free
ether9
@ether9
Jun 20 2017 16:17 UTC
cool
is it fast?
Juan Blanco
@juanfranblanco
Jun 20 2017 16:17 UTC
very
ether9
@ether9
Jun 20 2017 16:18 UTC
would it be quicker if the node was on the same server as the game server
localhost
Juan Blanco
@juanfranblanco
Jun 20 2017 16:18 UTC
well it will be be less latency on the localhost
but you can also provide the option to the user of what node to use
ether9
@ether9
Jun 20 2017 16:19 UTC
yep probably only < 250 ms
Juan Blanco
@juanfranblanco
Jun 20 2017 16:19 UTC
localhost, gameserver, infura, etc
so they still have a decentralised option
in case one of the public nodes goes down
ether9
@ether9
Jun 20 2017 16:21 UTC
thanks for answering my questions and helping :D
Juan Blanco
@juanfranblanco
Jun 20 2017 16:21 UTC
no problem
ether9
@ether9
Jun 20 2017 16:21 UTC
I'll idle here from now on
Juan Blanco
@juanfranblanco
Jun 20 2017 16:21 UTC
:+1:
ether9
@ether9
Jun 20 2017 18:39 UTC
I figured out that I didn't select "Universal Windows Platform Development" and NuGet package manager comes with that :/
problem is I now need to free up space on C: :/
Juan Blanco
@juanfranblanco
Jun 20 2017 19:14 UTC
you can try using vscode and .net core, far much smaller
just add the nuget package reference in the csproj and do a dotnet restore
BUT if you have not done it before, there is a small learning curve
ether9
@ether9
Jun 20 2017 21:54 UTC
I got it installed with nuget :D
I am using that unittest example to set up a simple web3 obj reference
because the app I am working with compiles the .cs files when you run the server, I needed to copy Nethereum.Web3.dll out of the 'packages' dir to reference it
Juan Blanco
@juanfranblanco
Jun 20 2017 21:58 UTC
or if you target net451 you can get it from the bin folder
as there are other dependencies
ether9
@ether9
Jun 20 2017 21:58 UTC
yeah I thought so
Juan Blanco
@juanfranblanco
Jun 20 2017 21:58 UTC
lots of other dlls
ether9
@ether9
Jun 20 2017 21:58 UTC
it asked for System.Runtime
Juan Blanco
@juanfranblanco
Jun 20 2017 21:59 UTC
yeap that is because you are targetting core
ether9
@ether9
Jun 20 2017 21:59 UTC
hmm I will explain more in depth
there is a mod for GTA5 which lets you script custom C# gamemodes
the server/scripting is all in C#
Juan Blanco
@juanfranblanco
Jun 20 2017 22:01 UTC
cool :)
yeah
ether9
@ether9
Jun 20 2017 22:01 UTC
yeah so I wanted to test out nethereum with it
when you run the server.exe it compiles the C# script, so that's why I am not using visual studio etc
Juan Blanco
@juanfranblanco
Jun 20 2017 22:03 UTC
ah I see, ok ill have a quick look tomorrow (going to bed now)
ether9
@ether9
Jun 20 2017 22:03 UTC
ok no problem
I will continue working around, thanks for the help :D
Juan Blanco
@juanfranblanco
Jun 20 2017 22:03 UTC
:D