These are chat archives for Nethereum/Nethereum

20th
Jun 2017
0x0AB
@0x0AB
Jun 20 2017 09:47
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
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
@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
I can't use nuget
Juan Blanco
@juanfranblanco
Jun 20 2017 15:27
?
ether9
@ether9
Jun 20 2017 15:27
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
right click on your project
add nuget package
ether9
@ether9
Jun 20 2017 15:28
right click sln?
Juan Blanco
@juanfranblanco
Jun 20 2017 15:28
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
nonuget.png
Juan Blanco
@juanfranblanco
Jun 20 2017 15:30
you need to create a project
ether9
@ether9
Jun 20 2017 15:32
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
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
I have a csproj file
Juan Blanco
@juanfranblanco
Jun 20 2017 15:35
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
I think 4.something
Juan Blanco
@juanfranblanco
Jun 20 2017 15:36
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
can you use it with mono as well?
Juan Blanco
@juanfranblanco
Jun 20 2017 15:38
yep
ether9
@ether9
Jun 20 2017 15:38
cool
Juan Blanco
@juanfranblanco
Jun 20 2017 15:39
but things are moving to .net core
ether9
@ether9
Jun 20 2017 15:39
what's .net core?
Juan Blanco
@juanfranblanco
Jun 20 2017 15:39
netstandard
the "new" cross platform .net https://www.microsoft.com/net/core
ether9
@ether9
Jun 20 2017 15:40
ahhh
so will that mean it won't work on Mono?
Juan Blanco
@juanfranblanco
Jun 20 2017 15:40
it does work on Mono
all the libraries are netstandard 1.1
ether9
@ether9
Jun 20 2017 15:41
ok cool
and above
ether9
@ether9
Jun 20 2017 15:41
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
ah got you.. yes it should be fine with vs2017
ether9
@ether9
Jun 20 2017 15:43
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
well you can
or use vscode
ether9
@ether9
Jun 20 2017 15:44
I use mono to compile at runtime on production server so no need for IDE
Juan Blanco
@juanfranblanco
Jun 20 2017 15:44
it will be better
yes but to get started
i would not just use notepad
ether9
@ether9
Jun 20 2017 15:46
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
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
I only have a bunch of .cs files
and some dlls
Juan Blanco
@juanfranblanco
Jun 20 2017 15:48
well that will do
ether9
@ether9
Jun 20 2017 15:51
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
you need add existing files
to the project
a solution is a container of projects
ether9
@ether9
Jun 20 2017 15:54
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
??
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
if I do that it wants .dsp or .vsp files
don't have those files
Juan Blanco
@juanfranblanco
Jun 20 2017 15:58
dsp?
vsp?
ether9
@ether9
Jun 20 2017 15:58
I will SS
vcp sorry
Juan Blanco
@juanfranblanco
Jun 20 2017 15:59
you can add any project format
blob
ether9
@ether9
Jun 20 2017 16:01
you have a lot more options that I do
Juan Blanco
@juanfranblanco
Jun 20 2017 16:02
that is because I installed everything :D
ether9
@ether9
Jun 20 2017 16:03
yeah I may need to reinstall
Juan Blanco
@juanfranblanco
Jun 20 2017 16:03
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
newproject.png
Juan Blanco
@juanfranblanco
Jun 20 2017 16:04
just open that from explorer with vs2017.. .net should have been installed by defualt
ether9
@ether9
Jun 20 2017 16:04
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
ah that is an issue in your installation
ether9
@ether9
Jun 20 2017 16:05
yeah I thought so
:/
I will reinstall
ether9
@ether9
Jun 20 2017 16:06
I think when I installed I got an error due to low disk space
Juan Blanco
@juanfranblanco
Jun 20 2017 16:06
check that ^^
ah..
ether9
@ether9
Jun 20 2017 16:06
I will uninstall it now
Juan Blanco
@juanfranblanco
Jun 20 2017 16:07
you may get away with just intallating additions
ether9
@ether9
Jun 20 2017 16:07
I want to make some stuff with Ethereum :D
Juan Blanco
@juanfranblanco
Jun 20 2017 16:07
but if you got an error
ether9
@ether9
Jun 20 2017 16:07
wish I bought some last year when it was cheaper
Juan Blanco
@juanfranblanco
Jun 20 2017 16:07
:D
ether9
@ether9
Jun 20 2017 16:07
I have 20k test ether tho :D
Juan Blanco
@juanfranblanco
Jun 20 2017 16:08
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
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
from there just ping here, check the tutorials and see what you need
ether9
@ether9
Jun 20 2017 16:11
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
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
I'm interested in testing it out for a game/modification
Juan Blanco
@juanfranblanco
Jun 20 2017 16:13
ok, to mainly do the modelling
"modelling" as in testing
ether9
@ether9
Jun 20 2017 16:14
Do you know if latency will be an issue when using ethereum? or Gas Prices?
Juan Blanco
@juanfranblanco
Jun 20 2017 16:14
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
only set (modified) transactions are 12 seconds though right?
Juan Blanco
@juanfranblanco
Jun 20 2017 16:15
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
Ok
Juan Blanco
@juanfranblanco
Jun 20 2017 16:16
but you can point it to your own hosted client
ether9
@ether9
Jun 20 2017 16:16
I forget what Infura is :O
Juan Blanco
@juanfranblanco
Jun 20 2017 16:16
infura provides a public node / client so you don't need to install it locally
ether9
@ether9
Jun 20 2017 16:17
ahh, do you need to pay?
Juan Blanco
@juanfranblanco
Jun 20 2017 16:17
it is free
ether9
@ether9
Jun 20 2017 16:17
cool
is it fast?
Juan Blanco
@juanfranblanco
Jun 20 2017 16:17
very
ether9
@ether9
Jun 20 2017 16:18
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
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
yep probably only < 250 ms
Juan Blanco
@juanfranblanco
Jun 20 2017 16:19
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
thanks for answering my questions and helping :D
Juan Blanco
@juanfranblanco
Jun 20 2017 16:21
no problem
ether9
@ether9
Jun 20 2017 16:21
I'll idle here from now on
Juan Blanco
@juanfranblanco
Jun 20 2017 16:21
:+1:
ether9
@ether9
Jun 20 2017 18:39
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
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
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
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
yeah I thought so
Juan Blanco
@juanfranblanco
Jun 20 2017 21:58
lots of other dlls
ether9
@ether9
Jun 20 2017 21:58
it asked for System.Runtime
Juan Blanco
@juanfranblanco
Jun 20 2017 21:59
yeap that is because you are targetting core
ether9
@ether9
Jun 20 2017 21:59
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
cool :)
yeah
ether9
@ether9
Jun 20 2017 22:01
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
ah I see, ok ill have a quick look tomorrow (going to bed now)
ether9
@ether9
Jun 20 2017 22:03
ok no problem
I will continue working around, thanks for the help :D
Juan Blanco
@juanfranblanco
Jun 20 2017 22:03
:D