User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Need help transferring Surface object file via Lacewing

  1. #1
    Clicker Multimedia Fusion 2Android Export ModuleSWF Export Module

    Join Date
    Jan 2013
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need help transferring Surface object file via Lacewing

    Hi
    I'm constructing a shooter game with worms-like destroyable terrain. I'm using the Surface object to make the terrain destroyable and the Lacewing object for the online functions. One thing I didnt think of is that if a new peer connect to the channel in the middle of a game, his terrain looks totally different then it does to the peers who were in the channel when the game started.
    What I need is a way to transform the surface object of one of the other peer into a binary message then can be sent via lacewing to the connecting peer.
    How this is done, or if there are any other ways to solve this i dont know...

    Can anyone help me out?

  2. #2
    Clickteam Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Simon's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    2,735
    Mentioned
    65 Post(s)
    Tagged
    3 Thread(s)
    How do you plan to get the terrain data to clients at the start of a level?

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    Just a thought, but could you somehow keep track of the changes done to the terrain, so that when new players login, their client will loop through the terrain-log and create the changes previously done by the other players?

  4. #4
    Clicker Multimedia Fusion 2Android Export ModuleSWF Export Module

    Join Date
    Jan 2013
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    To answer Simons question, at the beginning of the game the map is put together from a number of different, big, premade "blocks".
    Which block are used and which goes where is sent to all peers in a simple binary message to all peers, their application then builds a map identical to that of the channel master.

    I liked Popcorns idea of a terrain-log, the only thing that makes me a little uncomfortable, and I'm sure this can be worked around in many ways, is that if this log becomes big enough the fast loop to transfer it can cause lagg (which is no disaster) or in extreme cases even freeze the entire application. These are issues I have experienced while dealing with 5000+ loops

  5. #5
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    XStar's Avatar
    Join Date
    Feb 2012
    Location
    Winchester, VA
    Posts
    1,165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In theory, this should work, if you need it.

    I made a working example that should do the trick!

    If there's an issue, let me know!
    Attached files Attached files

  6. #6
    Clicker Multimedia Fusion 2Android Export ModuleSWF Export Module

    Join Date
    Jan 2013
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I cant get XStars thing to work. I have created a mini version of my game that only have the most basic functions needed for this issue, as well as functions i added while trying to get XStars thing to work.
    I also link a relay server that can be used to connect to a local network.
    One thing that worries me alittle is in XStars thing JPEG files are used, and that compression can mess things up, PNG is usually better.

    Game (Mini).mfaServer.mfa

  7. #7
    Clicker Multimedia Fusion 2Android Export ModuleSWF Export Module

    Join Date
    Jan 2013
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quick thing, sorry the attatched files ended up so close.
    Another thing, many of the servers extra funktions are linked to things that dosnt exist in that mini-game. To use it just wright 6121 and press host.

  8. #8
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    XStar's Avatar
    Join Date
    Feb 2012
    Location
    Winchester, VA
    Posts
    1,165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry about that, I'm not sure how to implement PNG files... I have a fully functioning LAN example that has been tested if you need it.

    It works fine on my end... I'm not sure what the issue is. :/

    Sorry...

    Here's the local network example:
    Attached files Attached files

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    happygreenfrog's Avatar
    Join Date
    May 2011
    Location
    I.L.T.D.O.I.R (I.L.T.D.O.I.R's Location: The Dimension Of Infinite Recursion)
    Posts
    4,307
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    The surface object comes with an example that shows you how to send the entire contents of the surface object using lacewing.

  10. #10
    Clicker Multimedia Fusion 2Android Export ModuleSWF Export Module

    Join Date
    Jan 2013
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It would be awsome if you could link that example, because its not something i've gotten

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Lacewing OUYA multiplayer-Example file
    By Sparckman in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 8th October 2013, 03:31 AM
  2. Lacewing Help File
    By LB in forum Lacewing
    Replies: 6
    Last Post: 13th May 2012, 03:40 AM
  3. Lacewing Help File
    By Phi in forum Lacewing
    Replies: 5
    Last Post: 8th September 2011, 06:56 PM
  4. OINC to Lacewing File converter
    By DJFuego in forum Lacewing
    Replies: 4
    Last Post: 29th April 2011, 03:50 PM
  5. Water Surface Object Example File
    By DanielRehn in forum File Archive
    Replies: 5
    Last Post: 17th September 2010, 12:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •