Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 03:57

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

Advertisement



Redux v2 - Official 5065 Classic Source

Discussion on Redux v2 - Official 5065 Classic Source within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Closed Thread
 
Old 10/09/2016, 11:30   #2326
 
soraura's Avatar
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1
Received Thanks: 0
Wow.. very old post

I just have 1 question (sorry, but i'm looking for the answer since many days..) :
Why the hell i can't create a new character in the client ?
The conexion with db seems good bcause i can play with the other accounts and characters, but mine no...
I have an account, but no char's
Any idea ?
i'm using Redux 3.05

PS : when i close client, the Redux console show me this :
[Redux] Ready to log in
Client Evilsora Connecting to server Light
NHibernate.StaleStateException: Unexpected row count: 0; expected: 1
à NHibernate.AdoNet.Expectations.BasicExpectation.Ve rifyOutcomeNonBatched(Int32 rowCount, IDbCommand statement) dans d:\CSharp\NH\nhibernate\src\NHibernate\AdoNet\Expe ctations.cs:ligne 29
à NHibernate.AdoNet.NonBatchingBatcher.AddToBatch(IE xpectation expectation) dans d:\CSharp\NH\nhibernate\src\NHibernate\AdoNet\NonB atchingBatcher.cs:ligne 40
à NHibernate.Persister.Entity.AbstractEntityPersiste r.Update(Object id, Object[] fields, Object[] oldFields, Object rowId, Boolean[] includeProperty, Int32 j, Object oldVersion, Object obj, SqlCommandInfo sql, ISessionImplementor session) dans d:\CSharp\NH\nhibernate\src\NHibernate\Persister\E ntity\AbstractEntityPersister.cs:ligne 2777
à NHibernate.Persister.Entity.AbstractEntityPersiste r.UpdateOrInsert(Object id, Object[] fields, Object[] oldFields, Object rowId, Boolean[] includeProperty, Int32 j, Object oldVersion, Object obj, SqlCommandInfo sql, ISessionImplementor session) dans d:\CSharp\NH\nhibernate\src\NHibernate\Persister\E ntity\AbstractEntityPersister.cs:ligne 2689
à NHibernate.Persister.Entity.AbstractEntityPersiste r.Update(Object id, Object[] fields, Int32[] dirtyFields, Boolean hasDirtyCollection, Object[] oldFields, Object oldVersion, Object obj, Object rowId, ISessionImplementor session) dans d:\CSharp\NH\nhibernate\src\NHibernate\Persister\E ntity\AbstractEntityPersister.cs:ligne 2965
à NHibernate.Action.EntityUpdateAction.Execute() dans d:\CSharp\NH\nhibernate\src\NHibernate\Action\Enti tyUpdateAction.cs:ligne 79
à NHibernate.Engine.ActionQueue.Execute(IExecutable executable) dans d:\CSharp\NH\nhibernate\src\NHibernate\Engine\Acti onQueue.cs:ligne 136
à NHibernate.Engine.ActionQueue.ExecuteActions(IList list) dans d:\CSharp\NH\nhibernate\src\NHibernate\Engine\Acti onQueue.cs:ligne 126
à NHibernate.Engine.ActionQueue.ExecuteActions() dans d:\CSharp\NH\nhibernate\src\NHibernate\Engine\Acti onQueue.cs:ligne 170
à NHibernate.Event.Default.AbstractFlushingEventList ener.PerformExecutions(IEventSource session) dans d:\CSharp\NH\nhibernate\src\NHibernate\Event\Defau lt\AbstractFlushingEventListener.cs:ligne 249
à NHibernate.Event.Default.DefaultFlushEventListener .OnFlush(FlushEvent event) dans d:\CSharp\NH\nhibernate\src\NHibernate\Event\Defau lt\DefaultFlushEventListener.cs:ligne 19
à NHibernate.Impl.SessionImpl.Flush() dans d:\CSharp\NH\nhibernate\src\NHibernate\Impl\Sessio nImpl.cs:ligne 1479
à NHibernate.Transaction.AdoTransaction.Commit() dans d:\CSharp\NH\nhibernate\src\NHibernate\Transaction \AdoTransaction.cs:ligne 187
à Redux.Database.Repositories.Repository`2.Update(TV alue obj) dans C:\Users\Lucas\Downloads\Redux 3.05\Redux\Database\Repositories\Repository.cs:lig ne 42

I don't have CSharp folder
soraura is offline  
Old 10/10/2016, 18:29   #2327
 
elite*gold: 0
Join Date: Jan 2006
Posts: 6
Received Thanks: 1
Question License?

Quote:
Originally Posted by pro4never View Post
...
@

What is the license of the source code?

I want to upload it on github, but I don't know the license.

Thanks pro4never for everything you've done.
jorgene0 is offline  
Old 10/10/2016, 19:09   #2328
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Quote:
Originally Posted by jorgene0 View Post
@

What is the license of the source code?

I want to upload it on github, but I don't know the license.

Thanks pro4never for everything you've done.
People are welcome to do anything they want with redux. Modify it, redistribute it, monetize it, anything they want. There are two limitations to that.

#1: If you're going to re-release it with your own changes, do an open source dev project or some other release, it should still be visibly redux (call the project what you want but stripping out all references to pro4never/redux would be a **** move)

#2: If you're doing a project with it, a simple mention of what source its based on is appreciated but not mandatory.


It's not that special of a source and has a TON of work needed if you wanted to actually host something worthwhile with it but I understand the appeal to a lot of people (relatively easy to understand and edit and mostly complete as a classic server). Do whatever you want with it and have fun. Personally I would point people more towards COPS though as it's probably a better reference of the same patch.

If you want to make it open source, go for it and post in git hub. As long as it says it's redux based somewhere on it I'm more than happy.
pro4never is offline  
Thanks
1 User
Old 10/10/2016, 19:55   #2329
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,204
Received Thanks: 4,106
It's an MIT license then.
Spirited is offline  
Old 10/10/2016, 21:19   #2330
 
elite*gold: 0
Join Date: Jan 2006
Posts: 6
Received Thanks: 1
Thumbs up

Quote:
Originally Posted by pro4never View Post
People are welcome to do anything they want with redux. Modify it, redistribute it, monetize it, anything they want. There are two limitations to that.

#1: If you're going to re-release it with your own changes, do an open source dev project or some other release, it should still be visibly redux (call the project what you want but stripping out all references to pro4never/redux would be a shit move)

#2: If you're doing a project with it, a simple mention of what source its based on is appreciated but not mandatory.


It's not that special of a source and has a TON of work needed if you wanted to actually host something worthwhile with it but I understand the appeal to a lot of people (relatively easy to understand and edit and mostly complete as a classic server). Do whatever you want with it and have fun. Personally I would point people more towards COPS though as it's probably a better reference of the same patch.

If you want to make it open source, go for it and post in git hub. As long as it says it's redux based somewhere on it I'm more than happy.
Ok, will do that. Don't worry, as a programmer I know what's all about. That's why I wanted your reply so I can rest assured

IMO, this is a good source, easy and well maintained, plus it's C#!
You et al., did a very good job on it.

Quote:
Originally Posted by Spirited View Post
It's an MIT license then.
Yeah! It's an MIT license then . I wasn't sure, if it was MIT, Mozilla or Apache, but now it's clear

EDIT: It's alive guys:



Let's work together
jorgene0 is offline  
Old 11/28/2016, 16:03   #2331
 
zakkwilde_17's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 137
Received Thanks: 4
Guys... i need help here.... Can someone show me a example for a MapEffect for this source ?

EDIT

Solved... but... can i do a string effect on a location ?
zakkwilde_17 is offline  
Old 12/05/2016, 10:30   #2332
 
elite*gold: 0
Join Date: Apr 2009
Posts: 10
Received Thanks: 0
5065 client

Anyone have a 5065 client that'll work with this source?? Links are dead
blobman22122 is offline  
Old 12/05/2016, 14:00   #2333
 
adm121's Avatar
 
elite*gold: 0
Join Date: Nov 2013
Posts: 19
Received Thanks: 3
Quote:
Originally Posted by blobman22122 View Post
Anyone have a 5065 client that'll work with this source?? Links are dead
adm121 is offline  
Old 12/07/2016, 15:50   #2334
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 946
Quote:
Originally Posted by Spirited View Post
It's an MIT license then.
Technically, it's not MIT, if it doesn't specify that it's MIT; whether its guidelines are similar or the exact same as MIT.

There are multiple license types that are similar or even have the exact same terms. It doesn't mean that they're all the same.

Similar, yes. The same, no.

The only time where a project has a license, without it being specified is if it's hosted on something like Github, where there's a standard license specified by Github if the project doesn't specify it itself.
Super Aids is offline  
Old 12/09/2016, 04:44   #2335
 
zakkwilde_17's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 137
Received Thanks: 4
Guys, how the Compose progress offset for 5066 ? I try to get it from other sources... i got this fron albetros... but the progress not showing.... always zero...



number from db is working...




can someone help me ?
zakkwilde_17 is offline  
Old 12/09/2016, 04:49   #2336
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,204
Received Thanks: 4,106
The packet offsets between versions 5066 and 5517 are very different. You can't just use a packet from 5517 for patch 5066.
Spirited is offline  
Old 12/09/2016, 05:24   #2337
 
zakkwilde_17's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 137
Received Thanks: 4
Quote:
Originally Posted by Spirited View Post
The packet offsets between versions 5066 and 5517 are very different. You can't just use a packet from 5517 for patch 5066.
Yes i know that.. But i search for the 5066 iteminfo packets on wikis, foruns, and dont found nothing >.< can help me on it ?
zakkwilde_17 is offline  
Old 12/09/2016, 05:46   #2338
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,204
Received Thanks: 4,106
Quote:
Originally Posted by zakkwilde_17 View Post
Yes i know that.. But i search for the 5066 iteminfo packets on wikis, foruns, and dont found nothing >.< can help me on it ?
I don't work with that patch, but you can help yourself. You don't need to ask people for help or to spend time documenting these things for you. They're documented because people have gone through and done consolidation or guess work on their own and then shared it. If it's not on the wiki, then look at sources that are closer to that patch instead of half a decade after. Guess the offsets - see what changes with the item and document it for future use. When you're done, share it so we can continue documenting packets as a community effort - or don't, the choice is most certainly up to you.
Spirited is offline  
Old 12/09/2016, 07:59   #2339
 
Hoven's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 456
Received Thanks: 128
Pardon my lack of experience, haven't messed around with C# in around 6 years.. Just had a quick question about this NPC i was working on to sell + stones. It crashes my client the moment i click on it, any feedback would be appreciated. Thanks in advance!

Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Redux.Packets.Game;

namespace Redux.Npcs
{

    public class NPC_600087 : INpc
    {
        /// <summary>
        /// Handles NPC usage for [600087] Richman Shop
        /// </summary>
        public NPC_600087(Game_Server.Player _client)
            : base(_client)
        {
            ID = 600087;
            Face = 10;
        }

        public override void Run(Game_Server.Player _client, ushort _linkback)
        {
            Responses = new List<NpcDialogPacket>();
            AddAvatar();
            switch (_linkback)
            {
                case 0:
                    AddText("I sell rare goods! Care to purchase any?");
                    AddOption("+1 Stone 100k", 1);
                    AddOption("+2 Stone 300k", 2);
                    AddOption("+3 Stone 900k", 3);
                    AddOption("+4 Stone 2.7m", 4);
                    AddOption("+5 Stone 8.1m", 5);
                    AddOption("+6 Stone 24.3m", 6);
                    AddOption("+7 Stone 72.9m", 7);
                    AddOption("+8 Stone 218.7m", 8);
                    AddOption("+9 Stone 656.1m", 9);
                    AddOption("Not now.", 255);
                    break;
                case 1://+1 Stone
                    if (_client.Money >= 100000)
                    {
                        _client.Money -= 100000;
                        _client.CreateItem(730001);
                    }
                    else
                    {
                        AddText("Sorry, you do not have 100k silver.");
                        AddOption("I see.", 255);
                    }
                    break;
                case 2://+2 Stone
                    if (_client.Money >= 300000)
                    {
                        _client.Money -= 300000;
                        _client.CreateItem(730002);
                    }
                    else
                    {
                        AddText("Sorry, you do not have 300k silver.");
                        AddOption("I see.", 255);
                    }
                    break;
                case 3://+3 Stone
                    if (_client.Money >= 900000)
                    {
                        _client.Money -= 900000;
                        _client.CreateItem(730003);
                    }
                    else
                    {
                        AddText("Sorry, you do not have 900k silver.");
                        AddOption("I see.", 255);
                    }
                    break;
                case 4://+4 Stone
                    if (_client.Money >= 2700000)
                    {
                        _client.Money -= 2700000;
                        _client.CreateItem(730004);
                    }
                    else
                    {
                        AddText("Sorry, you do not have 2.7m silver.");
                        AddOption("I see.", 255);
                    }
                    break;
                case 5://+5 Stone
                    if (_client.Money >= 8100000)
                    {
                        _client.Money -= 8100000;
                        _client.CreateItem(730005);
                    }
                    else
                    {
                        AddText("Sorry, you do not have 8.1m silver.");
                        AddOption("I see.", 255);
                    }
                    break;
                case 6://+6 Stone
                    if (_client.Money >= 24300000)
                    {
                        _client.Money -= 24300000;
                        _client.CreateItem(730006);
                    }
                    else
                    {
                        AddText("Sorry, you do not have 24.3m silver.");
                        AddOption("I see.", 255);
                    }
                    break;
                case 7://+7 Stone
                    if (_client.Money >= 72900000)
                    {
                        _client.Money -= 72900000;
                        _client.CreateItem(730007);
                    }
                    else
                    {
                        AddText("Sorry, you do not have 72.9m silver.");
                        AddOption("I see.", 255);
                    }
                    break;
                case 8://+8 Stone
                    if (_client.Money >= 218700000)
                    {
                        _client.Money -= 218700000;
                        _client.CreateItem(730008);
                    }
                    else
                    {
                        AddText("Sorry, you do not have 218.7m silver.");
                        AddOption("I see.", 255);
                    }
                    break;
                case 9://+9 Stone
                    if (_client.Money >= 656100000)
                    {
                        _client.Money -= 656100000;
                        _client.CreateItem(730009);
                    }
                    else
                    {
                        AddText("Sorry, you do not have 656.1m silver.");
                        AddOption("I see.", 255);
                    }
                    break;
            }
            AddFinish();
            Send();

        }
    }
}
Hoven is offline  
Old 12/09/2016, 08:49   #2340
 
turk55's Avatar
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,652
Received Thanks: 700
You have too many options for a single page... Simply modify it to be 2 pages and it should work.
turk55 is offline  
Thanks
1 User
Closed Thread


Similar Threads Similar Threads
[S] Shadow Warrior Classic Redux [B] EG
09/15/2013 - elite*gold Trading - 1 Replies
Topic regelt ! SWCR aus dem Weekly Bundle. Macht mir angebote.



All times are GMT +1. The time now is 03:57.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.