Comments (10)
Hello,
looking at your GSI_Receiver.cs, I see you're using the string constructor for GameStateListener here.
Can you try initializing it via gsl = new GameStateListener(3001);
instead? (I know this seems ridiculous, but CSGSI uses C#'s HttpListener for networking which has some bizarre behavior sometimes...)
from csgsi.
thx for reply :)
I tried it,but it can't receive GSI data from CS:GO(even both of v1.1.1 and latest).
from csgsi.
Since you're using localhost anyway: Did you try using the constructor that only takes the port as parameter? That's what I am using (in several different tools with different ports) and it's working fine for me.
If that still doesn't work check if your firewall prevents your program from accepting connections on that port, some firewalls do that even for localhost bound interfaces.
from csgsi.
I downloaded your project and set up the cfg (did not change the code at all). Watched a demo and it seems to be working for me: screenshot. Sounds like it might be some network configuration problem on your end.
from csgsi.
@YorVeX I've turned off Firewalls and still not working. I can access http://localhost:3001/ by using browser tho.
@rakijah have you replaced latest dll binary in Assets/Plugins/CSGSI.dll ?
that dll in my repo is v1.1.1 . so it should work.
from csgsi.
Yeah, my bad. If I replace the dll it doesn't work in Unity.
But when I set up a minimal console application project, it works without issues. I've gone through the changes made in the last few commits and can't seem to figure out why it would work in regular .NET projects but not in Unity. I've also tried compiling CSGSI for .NET 3.5 but no success.
One thing that may be an issue: In your gamestate_integration_unitytest.cfg
you set the uri to 127.0.0.1. I've had issues in the past where I had to swap "127.0.0.1" for "localhost" to make it work, but again, this didn't work in this case.
from csgsi.
Oh wait, I got it to work by recompiling CSGSI after changing the target framework to .NET 3.5 and setting Unity's scripting runtime version to framework 3.5 as well. Seems to be a compatibility issue between .NET 4.x and Unity's .NET backend (Mono).
from csgsi.
hmm its big problem for me,I tried to change version to .NET 3.5,but other library only supports 4.x .
v1.1.1 was working with .NET4.x, so I think some codes depends .NET 3.5 .
I know fixing it takes a lot of your time, you can leave this issue away.
btw Im trying to update it cuz v1.1.1 doesnt support CoutdownPhase.
from csgsi.
You can get CSGSI to compile if you switch the project to 3.5, then uninstall and reinstall JSON.Net.
Sorry, but I can't figure out what's causing this issue...
from csgsi.
hmm okay... I'll try reinstalling it.
okay,I guess there's code which doesnt support .net 4.x after v1.1.1. I'll try to find it when I have time.
Thanks for helping me :)
from csgsi.
Related Issues (20)
- CSGSI on VB .NET HOT 1
- Doesn't detect new Wingman map mode HOT 3
- So do you guys know how to properly do the average damage per round?
- Need help for everything-im new there HOT 1
- GameStateListener.Start only returns true on first run when debugging HOT 1
- Int Null value handling HOT 2
- Not working with Danger Zone HOT 1
- Getting NewGameState but can't compare its values. HOT 8
- GameState.Added... should return a bool HOT 1
- Exception when PlayerNode has an empty array in Weapons
- Some events are not being triggered. HOT 1
- gs.Bomb.State and gs.Previously.Bomb.State returning Undefined HOT 1
- doesn't connect HOT 7
- Sometimes when I call .Stop() there is unexpected error
- Game State Objects come one round slower HOT 1
- gs.Player.Forward and Position return null
- gs.Map.HasData always returns true HOT 1
- BumpMine will give an exception
- Using GameStateListener.Stop() generates a System.Net.HttpListenerException
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 csgsi.