Home Tutorials Download Beta Store Forum Documentation KnowledgeBase Wiki Blog

ShiVa3D

Return to Adobe Flash 11

ShiVa Flash 11 engine preview

Alternative to ShiVa's Web Player

Re: ShiVa Flash 11 engine preview

Postby vklymenko » 23 Apr 2012, 23:22

Hi! I tried to export a small file and worked very nice, but for a game I get "java heap space" error.

I tried directly calling the flex sdk compiler but I got the same error and no idea were I can tweak that. This machine has 8 gb ram

Any hint?


maybe try to keep the files at same hard disk - e.g. c:
i had same error when .stk was on d: and flex installed on c:
User avatar
vklymenko
Platinum Boarder
Platinum Boarder
 
Posts: 759
Location: Europe

Re: ShiVa Flash 11 engine preview

Postby eried » 24 Apr 2012, 00:25

vklymenko wrote:
Hi! I tried to export a small file and worked very nice, but for a game I get "java heap space" error.

I tried directly calling the flex sdk compiler but I got the same error and no idea were I can tweak that. This machine has 8 gb ram

Any hint?


maybe try to keep the files at same hard disk - e.g. c:
i had same error when .stk was on d: and flex installed on c:


Thanks for the hint!, it was on D: (my docs) I moved the stk to c:users... my desktop but I receive the same warning/error
http://screencast.com/t/oQySdLHssGF

Calling compc.exe directly shows the same error so I am pretty sure it is a problem with Java/Flash sdk
eried
Fresh Boarder
Fresh Boarder
 
Posts: 15

Re: ShiVa Flash 11 engine preview

Postby makkar » 18 May 2012, 10:51

NiCoX wrote:
do you think Shiva's implementation will be able to support the Shiva Networking API?


As Flash has a socket API, we should be able to provide networking support. What is sure is that we'll give it a serious try.


What exactly does it mean in this case that the Flash target does not support networking currently? Can't use distant environment? No such thing as xml.receive? No OpenURL?

Can you please provide the yet unsupported API groups?
User avatar
makkar
Platinum Boarder
Platinum Boarder
 
Posts: 1530

Re: ShiVa Flash 11 engine preview

Postby dreamora » 19 May 2012, 16:37

The networking itself does not work for sure (unsure on the request / xml side) and how well it will work will be seen, flash has no full socket support, it has only TCP support (gaming network = udp or get lost), as it never was meant for realtime action games towards which Stage 3D seems to go. So Adobe has a major lack there they need to adress.

also you are looking at paying adobe 9% of your income by going to stage 3d, at least unless its intend to be slow or make less than 50k in which case the investment itself needs to be reasonably small (which is unlikely if you want to pay the infrastructure for realtime MP)
Last edited by dreamora on 19 May 2012, 16:53, edited 1 time in total.
I'm no stonetrip representative, just a happy board member like you :)

If you find my portfolio interesting, feel free to contact me or follow my shares on my twitter stream or my game development blog
User avatar
dreamora
Platinum Boarder
Platinum Boarder
 
Posts: 844

Re: ShiVa Flash 11 engine preview

Postby makkar » 19 May 2012, 16:45

No, I don't want to make any realtime multiplayer games, I would just need to access a server for getting and sending some data.

Is that possible now with the Flash Export?
User avatar
makkar
Platinum Boarder
Platinum Boarder
 
Posts: 1530

Re: ShiVa Flash 11 engine preview

Postby makkar » 05 Jun 2012, 09:05

makkar wrote:No, I don't want to make any realtime multiplayer games, I would just need to access a server for getting and sending some data.

Is that possible now with the Flash Export?


Anyone from Stonetrip side :?:

Or maybe I could communicate with the webpage from Flash like the classic webplayer plugin can, and let javascript do the server communication?

Code: Select all
<script>
STON3D.DoFunction( "YourAction", parma1, etc. )
</script>

And:
Code: Select all
system.openUrl("javascript:YourFunction(param1, etc.);", "_YourHTMLTarget")


Is this supported with the Flash Export?
User avatar
makkar
Platinum Boarder
Platinum Boarder
 
Posts: 1530

Re: ShiVa Flash 11 engine preview

Postby broozar » 05 Jun 2012, 09:08

There will be tutorials on js/as/shiva interaction when the new UAT beta hits the internet.
User avatar
broozar
Platinum Boarder
Platinum Boarder
 
Posts: 3601
Location: Berlin - Germany

Re: ShiVa Flash 11 engine preview

Postby makkar » 05 Jun 2012, 13:51

broozar wrote:There will be tutorials on js/as/shiva interaction when the new UAT beta hits the internet.

Sorry to come again with this question, but: when? :oops:

You see, there is a larger project I'd start in 2-3 weeks, so I would need to know if I can do this job with Shiva or I would heavily need to dive into an HTML5 game engine. One requirement is pluginless operation for the web-based 2D game, that's why.
User avatar
makkar
Platinum Boarder
Platinum Boarder
 
Posts: 1530

Re: ShiVa Flash 11 engine preview

Postby NiCoX » 05 Jun 2012, 16:12

Hi,

We are finalizing dynamic shadows support, then we'll release a new version. With this new version, you'll be able to export a Flex project, and modify the AS3 code to add anything you'll need for your project.

I would just need to access a server for getting and sending some data. Is that possible now with the Flash Export?


With the current beta this is already possible. The xml.send and xml.receive function are working. They are just somehow limited by the Flash underlying security constraints (the crossdomain.xml thing), but except that, they are working fine.
User avatar
NiCoX
Platinum Boarder
Platinum Boarder
 
Posts: 5652
Location: France

Re: ShiVa Flash 11 engine preview

Postby flim » 05 Jun 2012, 17:33

I have no experience with Flash. Should I need Adobe Flash in order to export Flash project?
flim
Gold Boarder
Gold Boarder
 
Posts: 205

Re: ShiVa Flash 11 engine preview

Postby broozar » 05 Jun 2012, 18:28

flim wrote:I have no experience with Flash. Should I need Adobe Flash in order to export Flash project?

no you don't! that's the beauty of it. all you need are the SDKs for flex and java, and the UAT beta.
User avatar
broozar
Platinum Boarder
Platinum Boarder
 
Posts: 3601
Location: Berlin - Germany

Re: ShiVa Flash 11 engine preview

Postby makkar » 05 Jun 2012, 23:32

NiCoX wrote:With the current beta this is already possible. The xml.send and xml.receive function are working. They are just somehow limited by the Flash underlying security constraints (the crossdomain.xml thing), but except that, they are working fine.


Thanks! That is very good to hear, I am going to investigate it then.

The example part of the Beta Program description about the crossdomain.xml is empty. Could you complete the crossdomain.xml example, please?

Edit: Looking at the source of the Beta Program page I found that the xml is there indeed, but it isn't displayed in the browser. It should have been displayed as Code.

Anyway, here is a link for some other sample xml files:
http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html
http://kb2.adobe.com/cps/142/tn_14213.html
http://curtismorley.com/2007/09/01/flash-flex-tutorial-how-to-create-a-crossdomainxml-file/
User avatar
makkar
Platinum Boarder
Platinum Boarder
 
Posts: 1530

Re: ShiVa Flash 11 engine preview

Postby makkar » 11 Jun 2012, 03:51

Thanks for the intro-tutorial about crossdomain xml:
http://www.shivaengine.com/developer/2049-shiva-flash-xml-and-crossdomain

The tutorial should make it clear that you don't need to have this crossdomain.xml file in case you are trying to access xml files on your own server. At least it worked for me having the html page with Flash content and the xml files on my own server, without setting up the crossdomain.xml file.

I mean this sentence:
In order to interact with XML files on your server, you need to make use of a little file that handles access permission for your Flash documents, called crossdomain.xml.


However, when I am trying to acces a cloud service's server with https, xml send/receive fails. It works inside the editor. The other server has this crossdomain.xml:
Code: Select all
  <?xml version="1.0" ?>
  <!DOCTYPE cross-domain-policy (View Source for full doctype...)>
  <cross-domain-policy>
      <site-control permitted-cross-domain-policies="all" />
      <allow-access-from domain="*" secure="false" />
      <!--  <allow-http-request-headers-from domain="*" headers="*" secure="false"/> -->
  </cross-domain-policy>


What is happening here? The crossdomain policy gives permission for https acces to swf files served through http. Why does it fail then?
User avatar
makkar
Platinum Boarder
Platinum Boarder
 
Posts: 1530

Re: ShiVa Flash 11 engine preview

Postby makkar » 12 Jun 2012, 08:11

It isn't bacause https. I tried the same with http and it still gives this error when running inside Flash:
-2 error when downloading the xml (not found, unknown error, ...)


So, if not https then is there something wrong with their crossdomain xml?

Or is there something Flash can't handle in this call? I doubt because the service is claimed to be compatible with Flash.

Code: Select all
xml.receive ( this.hXml ( ),    "https://www.website.com/api/createItem", "api_key=xxxxxxxxxxxx"..                       "&".."response=XML".."&".."game_id=yyyyyyyy".."&".."username=somebody".."&".."gold=41263" )


And it still works only inside the Editor.
User avatar
makkar
Platinum Boarder
Platinum Boarder
 
Posts: 1530

Re: ShiVa Flash 11 engine preview

Postby giggsy » 12 Jun 2012, 08:17

Just a wild guess by reading the XML:
<allow-access-from domain="*" secure="false" />

>> what does the secure do when set to true?
User avatar
giggsy
Platinum Boarder
Platinum Boarder
 
Posts: 1105
Location: Austria

PreviousNext

Return to Adobe Flash 11