Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Eclipse - Event System


jcsnider
 Share

Recommended Posts

  • Replies 512
  • Created
  • Last Reply

Top Posters In This Topic

Well, I have that with my own systems as well. I've been fixing some pretty darn obvious bugs a few times nobody cared to report.

I think the main issue is that most people either:
A) Don't want to spend time ripping/modifying their existing game clients with changes.
B) They're still used to using dreadfully buggy engines and go along with it instead of striving to make things better.
C) They don't actually produce anything or never care to use half the features something offers.
Link to comment
Share on other sites

Alright guys, here is version 2.3 :D… this is a huge update so bear with me...

First, thanks to the help of kibbelz, we have a new demo world. This new demo includes some actual game play with weapons/npcs/resources etc where the whole focus of the game is to learn what Eclipse can do and how powerful it actually is. For most of you, this little demo will contain almost nothing new because it is targeted towards newer users but it is fun either way.

Here are screenshots :D

>! ![](http://www.freemmorpgmaker.com/files/imagehost/pics/33e8d59a869e95864fefabc5d5b357e1.png)
>! ![](http://www.freemmorpgmaker.com/files/imagehost/pics/2298229cf8bb6d0b23acd69f7c41401b.png)
>! ![](http://www.freemmorpgmaker.com/files/imagehost/pics/3e86e312c1e7f1ca10ff7cf61c255d8b.png)
>! ![](http://www.freemmorpgmaker.com/files/imagehost/pics/a4022239e6eea0d2d8fe715fe58e2b95.png)
>! ![](http://www.freemmorpgmaker.com/files/imagehost/pics/f2879003629613b7ab5d8f67459b0188.png)
>! ![](http://www.freemmorpgmaker.com/files/imagehost/pics/1da2f44f438fcb35984752e929977436.png)
>! ![](http://www.freemmorpgmaker.com/files/imagehost/pics/53b46c583c1345348949fb600c71b4f3.png)
>! ![](http://www.freemmorpgmaker.com/files/imagehost/pics/f3ed802ef78824e6100e9e86fbc1f657.png)
>! ![](http://www.freemmorpgmaker.com/files/imagehost/pics/adb58377492c1d8e9c5755bfc38c89d7.png)
>! ![](http://www.freemmorpgmaker.com/files/imagehost/pics/f57a91500d6e0d2800036f19972dbf1e.png)
>! ![](http://www.freemmorpgmaker.com/files/imagehost/pics/aa9b03717263c8049ff6236bfddd2460.png)
>! ![](http://www.freemmorpgmaker.com/files/imagehost/pics/2cc72c9e4f4908708dd704752cb4295f.png)
>! ![](http://www.freemmorpgmaker.com/files/imagehost/pics/6f7c27621e3a4e860634e4e9d6c28a04.png)
>! ![](http://www.freemmorpgmaker.com/files/imagehost/pics/cfe018b092a2431d8ce1e5afb052b489.png)
>! ![](http://www.freemmorpgmaker.com/files/imagehost/pics/fc254dd6690b3cf2f2913a929f95a2a7.png)

And of course, the download link.
[Eclipse Event System 2.3](http://www.jcsnider.freemmorpgmaker.com/Eclipse)

Sorry, there is no tutorial this time, I simply made too many modifications to keep track of. On top of those I added in almost every bug fix for EO 2.0 found in Justin's script database. (Thanks Justin!) If you are desperate and need to copy the edits to your system, you can download software and simply compare your current source to this new one for the edits.
Link to comment
Share on other sites

Depending on the reasons you're doing this it may be wise to create a compiled newb-friendly version. There're a lot more people interested in a functioning ORPG engine than some VB-project. I wouldn't suggest doing this in the current state, but considering that closed-source engines have always been more popular than opensource engines (dont ask me why, konfuze/PW compared to ES/MS as reference) it might be cool to focus a bit on that in the future.

If you're just trying to add sick features I wouldn't bother w/ it though.
Link to comment
Share on other sites

Hmm, I seem to get alot 'Invalid prodecure call or argument' errors at:
```
Set Segment = Loader.LoadSegment(App.Path & MUSIC_PATH & fileName)
```
Which is obvious related to the sound.
I'm not sure if I'm the only one having this but you might wanna check this out.
Link to comment
Share on other sites

@Erwin:

> Hmm, I seem to get alot 'Invalid prodecure call or argument' errors at:
> ```
> Set Segment = Loader.LoadSegment(App.Path & MUSIC_PATH & fileName)
> ```
> Which is obvious related to the sound.
> I'm not sure if I'm the only one having this but you might wanna check this out.

I am having the same problem yours.

Run-time error '5':
Invalid prodecure call or argument

modSound
Public Sub PlayMidi(ByVal fileName As String)

line:
Set Segment = Loader.LoadSegment(App.Path & MUSIC_PATH & fileName)
Link to comment
Share on other sites

Client-Side~

Public Sub PlayMidi(ByVal fileName As String)
Dim Splitmusic() As String

    ' If debug mode, handle error then exit out
    If Options.Debug = 1 Then On Error GoTo errorhandler

    If Options.Music = 1 Then Exit Sub ' -> after i change from 0 to 1, typically opens.

–-----------

this system very good, congratulations.
Link to comment
Share on other sites

Ok, replace your error handler with this (at the bottom of that sub)… and tell me what error it gives you when you turn music on.

```
errorhandler:
    If InGame Then
        HandleError "PlayMidi - Ingame = True - Map#= " & Player(MyIndex).Map & " - Filename = " & fileName, "modSound", Err.Number, Err.Description, Err.Source, Err.HelpContext
    Else
        HandleError "PlayMidi - Ingame = False - Filename = " & fileName, "modSound", Err.Number, Err.Description, Err.Source, Err.HelpContext
    End If
    Err.Clear
    Exit Sub
```
Link to comment
Share on other sites

Hey Jcsnider. I'm a huge fan of your revolutionary work. Just a quick question, however. Would it not be extremely awesome if there was such a thing as an instance generator (Or, in a sense, common events)? As in, an event editor option in the admin panel that allows you to edit events which can be used more than once. Maybe on use of a weapon, or if a piece of armour is equipped? Maybe on use it can spawn the event onto the map? IE. If a player uses a shovel, it will dig a hole into the ground (Spawn an event) which upon interacting with it, will allow the player to place seeds (Conditional branch which checks if the player has a specific seed) which eventually grow into plants (Harvest-able). Or maybe if the player uses an item "Warp gate", it will teleport them to a specific map. Maybe a summon item which will summon an event like a wall, or a mount (Like a horse!). I mean, those may sound quite complex, but I'm generally saying it would be nice to have an instance of an event made with your system to be generated with items and weapons.
Link to comment
Share on other sites

@jcsnider:

> Ok, replace your error handler with this (at the bottom of that sub)… and tell me what error it gives you when you turn music on.
>
> ```
> errorhandler:
>     If InGame Then
>         HandleError "PlayMidi - Ingame = True - Map#= " & Player(MyIndex).Map & " - Filename = " & fileName, "modSound", Err.Number, Err.Description, Err.Source, Err.HelpContext
>     Else
>         HandleError "PlayMidi - Ingame = False - Filename = " & fileName, "modSound", Err.Number, Err.Description, Err.Source, Err.HelpContext
>     End If
>     Err.Clear
>     Exit Sub
> ```

error still continues.

–--
jcsnider, Client-Side~

```
Public Sub PlayMidi(ByVal fileName As String)
Dim Splitmusic() As String

    ' If debug mode, handle error then exit out
    If Options.Debug = 1 Then On Error GoTo errorhandler

    If Options.Music = 0 Then Exit Sub ' <- it only runs after replacing the 0 by 1

    Splitmusic = Split(fileName, ".", , vbTextCompare)

    If Performance Is Nothing Then Exit Sub
    If LenB(Trim$(fileName)) < 1 Then Exit Sub
    If UBound(Splitmusic) <> 1 Then Exit Sub
    If Splitmusic(1) <> "mid" Then Exit Sub
    If Not FileExist(App.Path & MUSIC_PATH & fileName, True) Then Exit Sub

    If Not Music_On Then Exit Sub

    If Music_Playing = fileName Then Exit Sub

    Set Segment = Nothing
    Set Segment = Loader.LoadSegment(App.Path & MUSIC_PATH & fileName) ' <- line error

    ' repeat midi file
    Segment.SetLoopPoints 0, 0
    Segment.SetRepeats 100
    Segment.SetStandardMidiFile

    Performance.PlaySegment Segment, 0, 0

    Music_Playing = fileName

    ' Error handler
    Exit Sub
errorhandler:
    If InGame Then
        HandleError "PlayMidi - Ingame = True - Map#= " & Player(MyIndex).Map & " - Filename = " & fileName, "modSound", Err.Number, Err.Description, Err.Source, Err.HelpContext
    Else
        HandleError "PlayMidi - Ingame = False - Filename = " & fileName, "modSound", Err.Number, Err.Description, Err.Source, Err.HelpContext
    End If
    Err.Clear
    Exit Sub
End Sub
```
Link to comment
Share on other sites

The way the system is made, it would not be easy for a common event system to be added in. However, in the future it maybe something to look in to.

-snip-

I believe that the sound issues are coming from an error where the filenames were too long. If you simply re-download, I have changed the filenames a little and it should fix the issue.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share


×
×
  • Create New...