Re: Sierra - [C# - R63 - New Encoding - MySQL]
Quote:
Originally Posted by
Hejula
I think it means change version lots and not complete project :P
You'd wish it did. But it doesn't.
http://screensnapr.com/e/k86x1b.png
PS: I prefer the long jagged mountain definition. :D:
Quote:
Originally Posted by
Al0ne
hmmm. why do you say something about Wichard when you're doing exactly the same? (change project names)
EDIT: Goodluck with your projects! i liek your code, but its a shame you dont finish it, same word for wichard ;)
Don't you ever compare me to Wichard. I'm not the one who left the cms developer. The cms developer left me.
--
Also I just would like to say that every single server (I think apart from Thor) released on here has never been completed.
Quote:
Originally Posted by
Zak©
Can't judge class, it's just the structure.
Um does "Sierra"have a meaning? Usually most of your names have a meaning.
Just saying. I'm not taking any input/constructive criticism from you. :):
Re: Sierra - [C# - R63 - New Encoding - MySQL]
Quote:
Originally Posted by
Quackster
You'd wish it did. But it doesn't.
http://screensnapr.com/e/k86x1b.png
PS: I prefer the long jagged mountain definition. :D:
Don't you
ever compare me to Wichard. I'm not the one who left the cms developer. The cms developer left me.
--
Also I just would like to say that every single server (I think apart from Thor) released on here has never been completed.
Just saying. I'm not taking any input/constructive criticism from you. :):
There are certain servers which have been completed, just not released for instance: Hebbo's server (habbo.rs)
Re: Sierra - [C# - R63 - New Encoding - MySQL]
Re: Sierra - [C# - R63 - New Encoding - MySQL]
Quote:
Originally Posted by
Quackster
Sierra Leone - Wikipedia, the free encyclopedia is also a pretty violent, brutal country in Africa :(:
Re: Sierra - [C# - R63 - New Encoding - MySQL]
just one thing.. i havent seen any updates so far of what you have done... if you prove for us that your going to stick with this then give us some update and make it opensourced
Re: Sierra - [C# - R63 - New Encoding - MySQL]
Quote:
Originally Posted by
Casly
just one thing.. i havent seen any updates so far of what you have done... if you prove for us that your going to stick with this then give us some update and make it opensourced
you have to wait for updates , coding an emulator takes some time and he has a social live 2 ( i think ) so keep that in mind , and if he post to much updates to fast he may be trying to speed up the progress and the outcome of that is bad coding so the answer is just wait
Re: Remedy - C# NET 4.0 - V1 - MySQL
Quote:
Originally Posted by
Quackster
(about indigo..)
So someone who said that will the CMS for Indigo automatically tells me that they will stop, screwing me over. Which means that Indigo wouldn't live up to it's potential it could of had with a mate I thought that was up to the job that he, himself offered. You can't trust anyone this section anymore.
It just doesn't end up successful as it could of been if everyone knows Indigo has a bad history of the website development part being dropped. Ash made my motivation disappear after he backstabbed me, so how will I gain it if no one offers to help me with it.
Also my opinion about the 'lastest revision' - screw their opinions over the revision. I can do any revision I choose. It's more of my programming experience.
I wanna code SierraCMS, but my PHP skills suck :glare:
Re: Sierra - [C# - R63 - New Encoding - MySQL]
Created support for the front page, you'll see the /client as I've already created my own cms for Sierra.
http://screensnapr.com/e/pUr6Al.png
Some code... :):
Code:
public void ShopPage(GameClient mSession, Request Request)
{
Int32 CataloguePageId = Request.PopBitInt32;
Response Response = new Response();
ShopPage CatalogePage = SierraEnvironment.GetHabboHotel().GetShopPages().GetPage(CataloguePageId);
{
if (CatalogePage != null)
{
switch (CatalogePage.Layout)
{
case "frontpage3":
{
Response.Initialize(ServerComposers.CataloguePage);
Response.AppendInt32(CatalogePage.Id);
Response.AppendString(CatalogePage.Layout);
Response.AppendInt32(3);
Response.AppendString(CatalogePage.Content[0]);
Response.AppendString(CatalogePage.Content[1]);
Response.AppendString("");
Response.AppendInt32(11);
Response.AppendString(CatalogePage.Content[2]);
Response.AppendString(CatalogePage.Content[3]);
Response.AppendString(CatalogePage.Content[4]);
Response.AppendString("How to get Sierra Credits?");
Response.AppendString(new String[] { "You can get Sierra Credits via Prepaid Cards, Home Phone, Credit Card, Mobile, completing offers and more!", "To redeem your Sierra Credits, enter your voucher code below." });
Response.AppendString("Enter your voucher code:");
Response.AppendString("Rares");
Response.AppendString("#FEFEFE");
Response.AppendString("#FEFEFE");
Response.AppendString("Click here for more info..");
Response.AppendString("magic.credits");
Response.AppendInt32(0);
Response.AppendInt32(-1);
mSession.Send(Response);
}
break;
}
}
}
}
Quote:
Originally Posted by
Resource
you have to wait for updates , coding an emulator takes some time and he has a social live 2 ( i think ) so keep that in mind , and if he post to much updates to fast he may be trying to speed up the progress and the outcome of that is bad coding so the answer is just wait
Exactly I vouch for this for comment! :D
Quote:
Originally Posted by
azaidi
I wanna code SierraCMS, but my PHP skills suck :glare:
I have plans to create my own cms for Sierra, thanks for the offer! :love:
Quote:
Originally Posted by
AWA
Upload to GitHub!
Fixed my GitHub account. I haven't uploaded Sierra (because I'm not), but here is the old RemedyV1..
https://github.com/QuacksterNET/RemedyV1
Quote:
Originally Posted by
Pure
There are certain servers which have been completed, just not released for instance: Hebbo's server (habbo.rs)
Yes. However I was talking about released ones :D :wink:
Re: Sierra - [C# - R63 - New Encoding - MySQL]
Quote:
Originally Posted by
Quackster
Created support for the front page, you'll see the /client as I've already created my own cms for Sierra.
http://screensnapr.com/e/pUr6Al.png
Some code... :):
Code:
public void ShopPage(GameClient mSession, Request Request)
{
Int32 CataloguePageId = Request.PopBitInt32;
Response Response = new Response();
ShopPage CatalogePage = SierraEnvironment.GetHabboHotel().GetShopPages().GetPage(CataloguePageId);
{
if (CatalogePage != null)
{
switch (CatalogePage.Layout)
{
case "frontpage3":
{
Response.Initialize(ServerComposers.CataloguePage);
Response.AppendInt32(CatalogePage.Id);
Response.AppendString(CatalogePage.Layout);
Response.AppendInt32(3);
Response.AppendString(CatalogePage.Content[0]);
Response.AppendString(CatalogePage.Content[1]);
Response.AppendString("");
Response.AppendInt32(11);
Response.AppendString(CatalogePage.Content[2]);
Response.AppendString(CatalogePage.Content[3]);
Response.AppendString(CatalogePage.Content[4]);
Response.AppendString("How to get Sierra Credits?");
Response.AppendString(new String[] { "You can get Sierra Credits via Prepaid Cards, Home Phone, Credit Card, Mobile, completing offers and more!", "To redeem your Sierra Credits, enter your voucher code below." });
Response.AppendString("Enter your voucher code:");
Response.AppendString("Rares");
Response.AppendString("#FEFEFE");
Response.AppendString("#FEFEFE");
Response.AppendString("Click here for more info..");
Response.AppendString("magic.credits");
Response.AppendInt32(0);
Response.AppendInt32(-1);
mSession.Send(Response);
}
break;
}
}
}
}
Exactly I vouch for this for comment! :D
I have plans to create my own cms for Sierra, thanks for the offer! :love:
Fixed my GitHub account. I haven't uploaded Sierra (because I'm not), but here is the old RemedyV1..
https://github.com/QuacksterNET/RemedyV1
Yes. However I was talking about released ones :D :wink:
If you are not going to release this as opensource, then I suggest you to use a layout system for the catalogue pages.
I'll explain it better:
If someone wants to have a different frontpage, and he has not access to the source code, then it would be useful to edit it via MySQL.
In one of my latest projects, I added another column in the catalogue table, and used that for this purpose.
For example, in some rows there could have been something like that:
Code:
{L}[2]{T}[2]{"Page Name"}
Every single string closed between the parenthesis represents something:
"L" is the page layout
"T" is the teaser etc
It's a sort of serializable string which represents the structure of the page, and you can use to build message (and at the sime time, it can be easily edited)...
Hope you've understand ;)
If not, let me know xD
Re: Sierra - [C# - R63 - New Encoding - MySQL]
Here is the real catalog page structure: (I found it in the SWF)
Code:
pageId
LayoutCode
imageCount
foreach image:
image string
textCount
foreach text:
text string
offerCount
foreach offer
offerID
localizationId
priceInCredits
priceInActivityPoints
activityPointType
+ more, cba to add rest
offerId (unknown)
Re: Sierra - [C# - R63 - New Encoding - MySQL]
@AWA - I appreciate that Audun.
Quote:
Originally Posted by
W00dL3cs
If you are not going to release this as opensource, then I suggest you to use a layout system for the catalogue pages.
I'll explain it better:
If someone wants to have a different frontpage, and he has not access to the source code, then it would be useful to edit it via MySQL.
In one of my latest projects, I added another column in the catalogue table, and used that for this purpose.
For example, in some rows there could have been something like that:
Code:
{L}[2]{T}[2]{"Page Name"}
Every single string closed between the parenthesis represents something:
"L" is the page layout
"T" is the teaser etc
It's a sort of serializable string which represents the structure of the page, and you can use to build message (and at the sime time, it can be easily edited)...
Hope you've understand ;)
If not, let me know xD
It's called testing.
And I don't know why you assumed it's closed source. ;o
Re: Sierra - [C# - R63 - New Encoding - MySQL]
I thought this was An Oldskool prjct? but nice.
Re: Sierra - [C# - R63 - New Encoding - MySQL]
Re: Sierra - [C# - R63 - New Encoding - MySQL]
Quote:
Originally Posted by
Quackster
Created support for the front page, you'll see the /client as I've already created my own cms for Sierra.
http://screensnapr.com/e/pUr6Al.png
Some code... :):
Code:
public void ShopPage(GameClient mSession, Request Request)
{
Int32 CataloguePageId = Request.PopBitInt32;
Response Response = new Response();
ShopPage CatalogePage = SierraEnvironment.GetHabboHotel().GetShopPages().GetPage(CataloguePageId);
{
if (CatalogePage != null)
{
switch (CatalogePage.Layout)
{
case "frontpage3":
{
Response.Initialize(ServerComposers.CataloguePage);
Response.AppendInt32(CatalogePage.Id);
Response.AppendString(CatalogePage.Layout);
Response.AppendInt32(3);
Response.AppendString(CatalogePage.Content[0]);
Response.AppendString(CatalogePage.Content[1]);
Response.AppendString("");
Response.AppendInt32(11);
Response.AppendString(CatalogePage.Content[2]);
Response.AppendString(CatalogePage.Content[3]);
Response.AppendString(CatalogePage.Content[4]);
Response.AppendString("How to get Sierra Credits?");
Response.AppendString(new String[] { "You can get Sierra Credits via Prepaid Cards, Home Phone, Credit Card, Mobile, completing offers and more!", "To redeem your Sierra Credits, enter your voucher code below." });
Response.AppendString("Enter your voucher code:");
Response.AppendString("Rares");
Response.AppendString("#FEFEFE");
Response.AppendString("#FEFEFE");
Response.AppendString("Click here for more info..");
Response.AppendString("magic.credits");
Response.AppendInt32(0);
Response.AppendInt32(-1);
mSession.Send(Response);
}
break;
}
}
}
}
Exactly I vouch for this for comment! :D
I have plans to create my own cms for Sierra, thanks for the offer! :love:
Fixed my GitHub account. I haven't uploaded Sierra (because I'm not), but here is the old RemedyV1..
https://github.com/QuacksterNET/RemedyV1
Yes. However I was talking about released ones :D :wink:
You don't want to be backstabbed again by an ass.
Goodluck, this is looking gooooood! :love:
Re: Sierra - [C# - R63 - New Encoding - MySQL]
Quote:
Originally Posted by
AWA
Here is the real catalog page structure: (I found it in the SWF)
Code:
pageId
LayoutCode
imageCount
foreach image:
image string
textCount
foreach text:
text string
offerCount
foreach offer
offerID
localizationId
priceInCredits
priceInActivityPoints
activityPointType
+ more, cba to add rest
offerId (unknown)
Was hoping people would never catch on to be honest
PHP Code:
public void cachePageDetails() {
// Loop through all pages
for(CataloguePage page : this.m_cataloguePages.values()) {
// Init a new msg.
HabboServerPacket sMessage = new HabboServerPacket(HabboResponse.CataloguePageMessageComposer);
// Ensure this is a valid page
if(!page.getPageLayout().isEmpty()){
// Basic information
sMessage.writeInt(page.getPageID());
sMessage.writeString(page.getPageLayout());
// New catalogue system attempt..
sMessage.writeInt(page.getPageHeadings().length);
for(int x = 0; x < page.getPageHeadings().length; x++) {
sMessage.writeString(page.getPageHeadings()[x]);
}
sMessage.writeInt(page.getPageBody().length);
for(int x = 0; x < page.getPageBody().length; x++) {
sMessage.writeString(page.getPageBody()[x]);
}
// Grab all articles on the page
page.setArticles(Cerebro.getCommunication().getCatalogueSQL().getArticlesOnPage(page.getPageID()));
sMessage.writeInt(page.getArticles().size());
for(CatalogueArticle article : page.getArticles().values()){
article.serialize(sMessage);
}
sMessage.writeInt(-1); // ends in -1
this.m_cachedCataloguePages.put(page.getPageID(), sMessage);
}
}
}