Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Rappelz > Rappelz Private Server
You last visited: Today at 12:05

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Need Help In C# PLZ

Discussion on Need Help In C# PLZ within the Rappelz Private Server forum part of the Rappelz category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2016
Posts: 50
Received Thanks: 1
Need Help In C# PLZ

Hi everyone hope your fine
i need some help in C# i'm new i want to use DataCore V4 ( iSmokeDrow )
to add / update files in Rappelz Data.*** files anyone can help me thx
HiddenAfter is offline  
Old 06/07/2018, 20:33   #2
 
Dark Blaze's Avatar
 
elite*gold: 0
Join Date: Mar 2016
Posts: 297
Received Thanks: 89
Dark Blaze is offline  
Old 06/07/2018, 20:41   #3
 
elite*gold: 0
Join Date: Nov 2016
Posts: 50
Received Thanks: 1
I know i actually download it and i did spent the last two days trying at least get some results but i'm lost i need someone to guid me that's all
HiddenAfter is offline  
Old 06/07/2018, 22:15   #4
 
Dark Blaze's Avatar
 
elite*gold: 0
Join Date: Mar 2016
Posts: 297
Received Thanks: 89
Quote:
Originally Posted by HiddenAfter View Post
I know i actually download it and i did spent the last two days trying at least get some results but i'm lost i need someone to guid me that's all
The documentation is in the thread and there are some examples.
Dark Blaze is offline  
Old 06/07/2018, 22:42   #5
 
elite*gold: 0
Join Date: Nov 2016
Posts: 50
Received Thanks: 1
oky

Quote:
Originally Posted by Dark Blaze View Post
The documentation is in the thread and there are some examples.
okey !! let me explain to you what i need
look i need for example to import this image let say : test.png into data.xxx files.
i've created new project and add datacore.dll
and i did make a form when i clicked on button
start to import the image like this
PHP Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using DataCore;
using DataCore.Functions;
using DataCore.Structures;
namespace 
WindowsFormsApplication1
{
    public 
partial class Form1 Form
    
{
        
Core dCore = new Core(trueEncoding.Default);
        public 
Form1()
        {
            
InitializeComponent();
        }

        private 
void button1_Click(object senderEventArgs e)
        {
            
dCore.Load(@"E:\WorkSpace\Rappelz\DataCore\Data\data.000");

            
dCore.ImportFileEntry(@"E:\test.png");

        }
    }

i know i'm doing it wrong even before itried to start the programme and it didn't work can u please explain to me how can i do it ?
HiddenAfter is offline  
Old 06/08/2018, 12:47   #6
Moderator


 
ThunderNikk's Avatar
 
elite*gold: 1
Join Date: Dec 2012
Posts: 4,913
Received Thanks: 1,491
So I only dabble in C# and really don't know enough to help you but I may be able to provide some better direction.

I know SilentWisdom did a lot of work with datacore and had some open source releases that used datacore for client handling like Grimoire.

Maybe you could take a look at his source and use it to give you a little bit of an idea of how to handle your project. Maybe you have already done this but if you haven't it might give you a little better idea of how to handle integrating datacore into your code.
ThunderNikk is offline  
Old 06/08/2018, 13:11   #7
 
elite*gold: 0
Join Date: Nov 2016
Posts: 50
Received Thanks: 1
Quote:
Originally Posted by ThunderNikk View Post
So I only dabble in C# and really don't know enough to help you but I may be able to provide some better direction.

I know SilentWisdom did a lot of work with datacore and had some open source releases that used datacore for client handling like Grimoire.

Maybe you could take a look at his source and use it to give you a little bit of an idea of how to handle your project. Maybe you have already done this but if you haven't it might give you a little better idea of how to handle integrating datacore into your code.
Thank you ill do it
HiddenAfter is offline  
Old 06/08/2018, 14:40   #8
 
SilentWisdom's Avatar
 
elite*gold: 0
Join Date: Jul 2015
Posts: 479
Received Thanks: 639
Wrap the core. Functions in a try statement, you're probably getting an error. Used to be datacore would fire an event called ErrorOccured but it was coded out and now Datacore will throw specific exceptions.

try { /*core.function goes in here*/ }
catch (Exception ex) { Message box.Show(ex.Message, "DataCore Exception", MessageBoxButtons.OK }

P.s. DataCore is not multithreaded by nature so if you issue long polling function requests get ready for your front end to lock up until the function exits. I suggest you look into the TASK api:

Code:
using System.Threading.Tasks;

void async method()
{
await Task.Run(() => { 
core.Load(path);
core.ImportFileEntry(arg, arg); });

}
Also remember if you don't properly subscribe to events you won't get progress or status updates from DataCore.

(Sorry for weirdness wrote this on mobile omw to work)
SilentWisdom is offline  
Thanks
1 User
Old 06/08/2018, 15:14   #9
 
elite*gold: 0
Join Date: Nov 2016
Posts: 50
Received Thanks: 1
Exclamation

Quote:
Originally Posted by ThunderNikk View Post
So I only dabble in C# and really don't know enough to help you but I may be able to provide some better direction.

I know SilentWisdom did a lot of work with datacore and had some open source releases that used datacore for client handling like Grimoire.

Maybe you could take a look at his source and use it to give you a little bit of an idea of how to handle your project. Maybe you have already done this but if you haven't it might give you a little better idea of how to handle integrating datacore into your code.
Quote:
Originally Posted by SilentWisdom View Post
Wrap the core. Functions in a try statement, you're probably getting an error. Used to be datacore would fire an event called ErrorOccured but it was coded out and now Datacore will throw specific exceptions.

try { /*core.function goes in here*/ }
catch (Exception ex) { Message box.Show(ex.Message, "DataCore Exception", MessageBoxButtons.OK }

P.s. DataCore is not multithreaded by nature so if you issue long polling function requests get ready for your front end to lock up until the function exits. I suggest you look into the TASK api:

Code:
using System.Threading.Tasks;

void async method()
{
await Task.Run(() => { 
core.Load(path);
core.ImportFileEntry(arg, arg); });

}
Also remember if you don't properly subscribe to events you won't get progress or status updates from DataCore.

(Sorry for weirdness wrote this on mobile omw to work)
thank you for the reply
allright now i'v done some changes on my part
so i made the programme load the data.xxx when start then start to import a image after i clicked on
import button like that
PHP Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using DataCore;
using DataCore.Structures;
using DataCore.Functions;

namespace 
WindowsFormsApplication3
{
    public 
partial class Form1 Form
    
{

        
Core dCore = new Core(trueEncoding.Default);
        
        public 
Form1()
        {
            
InitializeComponent();
            try { 
dCore.Load(@"E:\WorkSpace\Rappelz\DataCore\Data\data.000"); label.Text "Loading Done !"; }
            catch (
Exception ex) { label.Text ex.Message "DataCore Exception"; }
        }

        private 
void button_Click(object senderEventArgs e)
        {
            try { 
dCore.ImportFileEntry(@"E:/test.png"); label.Text "Loading Done !"; }
            catch (
Exception ex) { label.Text ex.Message "DataCore Exception"; }
        }
    }

when i start my programme i got this


but after i click on import
igot this

PHP Code:
{"An exception of type 'System.StackOverflowException' was thrown."
!! so ?
HiddenAfter is offline  
Old 06/08/2018, 16:13   #10
 
SilentWisdom's Avatar
 
elite*gold: 0
Join Date: Jul 2015
Posts: 479
Received Thanks: 639
Message me on Skype @
SilentWisdom is offline  
Old 06/08/2018, 18:27   #11
 
elite*gold: 0
Join Date: Nov 2016
Posts: 50
Received Thanks: 1
Quote:
Originally Posted by SilentWisdom View Post
Message me on Skype @
i sent u message.. thx
HiddenAfter is offline  
Reply


Similar Threads Similar Threads
someone how to create a speed hacker for conquer 2.0 in dev c + + plz plz plz plz onl
08/04/2012 - CO2 Programming - 8 Replies
plz
PLZ PLZ PLZ MAKE A ZP HACK IM BGGING PLZ
06/21/2010 - CrossFire - 7 Replies
MAKE A ZP HACK PLZ AND PLZ AND LZ I REAY NEED ZP CROSS FIRE WOULD GET PISSED OFF IF U MADE A ZP HACK PLZ MAKEONE THANK U
[HELP] plz plz plz ineed Source clinet 5065 plz
05/23/2009 - CO2 Private Server - 4 Replies
plz plz plz ineed Source clinet 5065 plz and ineed acc server 5065 pales mans elitepvpers plz Source clinet 5065 Now:handsdown::handsdown::handsdown:
PLZ HELP ME PLZ PLZ PLZ!!!!!!!!!&#
06/21/2007 - Conquer Online 2 - 3 Replies
hi guys.. am a new user in this fourm and i wished u can help me how can i open a soket.. not only in wepons... in all stuff "boots.neckls.. rings. earings.coat...." in an easy way ... i need the way very quikly plzzzzzzzzzzz and plz tell me the times when i can do this... and how can i transfrom dbs from server to another,.... :cry: :cry: :cry: plz plz plz help me ..... plz answer me very very very quickly thx so much..



All times are GMT +1. The time now is 12:08.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.