code-disaster / steamworks4j

A thin Java wrapper to access the Steamworks API
https://code-disaster.github.io/steamworks4j/
MIT License
468 stars 64 forks source link

steam workshop process #7

Closed titoasty closed 9 years ago

titoasty commented 9 years ago

Hi,

I'm trying to use steam workshop and I'm facing some issues. As function names are different, I can't figure how to simply publish a file on workshop. I tried publishWorkshopFile but I always have "fileNotFound". Same for fileWrite or fileShare...

code-disaster commented 9 years ago

How are function names different? I tried to not change naming, except to adjust to common Java camelCase conventions, and to get rid of the awful Hungarian notation.

Do you get any error messages? Our publishing workflow with the Halfway editor is:

titoasty commented 9 years ago

ok this is exactly what I did according to the example provided. so the problem may come from my workshop config because every time I call fileShare() on the file I wrote, I have a "FileNotFound" result...

code-disaster commented 9 years ago

Yes, a FileNotFound error on fileShare() is odd. You could try to enumerate and read your files again using the RemoteStorage file API, just to check if the writes really worked.

titoasty commented 9 years ago

Yes I already tried to check file existence with fileExists and by listing files, but nothing.. The weird thing is that I have no error when I'm writing the file.. Perhaps a problem of context? I'm testing directly from eclipse, with a steam client launched, I checked workshop config on steam but still nothing... (and steam doc/help is not very useful actually) Le 19 mai 2015 10:56, "Daniel Ludwig" notifications@github.com a écrit :

Yes, a FileNotFound error on fileShare() is odd. You could try to enumerate and read your files again using the RemoteStorage file API, just to check if the writes really worked.

— Reply to this email directly or view it on GitHub https://github.com/code-disaster/steamworks4j/issues/7#issuecomment-103404018 .

code-disaster commented 9 years ago

I think you don't even touch the workshop part yet. Did you configure your Steam Cloud settings (quota per user, # of files allowed) in Steamworks?

titoasty commented 9 years ago

Yes I set 10 files per user and 1024bytes. Le 19 mai 2015 11:32, "Daniel Ludwig" notifications@github.com a écrit :

I think you don't even touch the workshop part yet. Did you configure your Steam Cloud settings (quota per user, # of files allowed) in Steamworks?

— Reply to this email directly or view it on GitHub https://github.com/code-disaster/steamworks4j/issues/7#issuecomment-103416702 .

code-disaster commented 9 years ago

I hope that's a typo. 1024 bytes ain't much! ;)

titoasty commented 9 years ago

You know what ? I was assuming it was kbytes instead of bytes (and fully working now ! wow thanks !). So you probably are a genius :dancer:

But anyway, this is quite disturbing that when the remote storage is full there is no error returned, only a "fileNotFound" but no error while writing the file. So it's probably a steam issue ?