SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Gamemode Scripts

Reply
 
Thread Tools Display Modes
Old 31/08/2017, 12:58 AM   #1
Misiur
High-roller
 
Misiur's Avatar
 
Join Date: Jul 2009
Location: Poland
Posts: 2,407
Reputation: 500
Default Y-Core + Y-RP development thread




This project is under active development

This thread is for live updates of Y-Core and Y-RP (other Y-* projects will have separate threads). I'd like to ask you for features that all gamemodes should have, and RP gamemodes should have.

Y?

Because I can. Because it's practically YSI libraries showcase. Because I'm sick and tired of Raven's GM still being alive. And because I need your help to make this happen.

The goal

I'm dissapointed with underuse of YSI in the wild. Usually it's foreach and that's it. I want to create a bootstrap for all server owners - no matter the gamemode, no matter the server language. Y-RP will be the flagship, as my fondest memories are from playing on RP servers.

Y-Core?

Y-core is just a scaffolding for another scaffolding such as Y-RP. You can use Y-Core without any of the extensions, as everything is customizable from within config.

Installation

This is not a beginner friendly gamemode. It is not meant to be used without modifications. If you don't understand particular code excerpt, feel free to ask here or in github issues. I did not list Y-RP as a submodule, as it is optional, and in the future there'll be many gamemodes to choose from.
If you are having troubles with enviornment, feel free to use my create-samp-app tool to set up everything quickly.

Prerequisites
Y-Core
  • Set up samp-server and compiler in default folders
  • Clone Y-Core
  • Copy gamemodes/config.inc.template to gamemodes/config.inc
  • (if using only Y-Core) Disable all Y_MODE_* modules
  • If using Y_PLAYER_REQUIRE_ACCOUNT, compile and run gamemodes/install.pwn
  • Done!

Y-RP
  • Install Y-Core as above
  • Clone Y-RP and unpack in Y-Core root folder
  • Enable Y_MODULE_RP in config.inc

Current features

Y-Core
  • Secure login and register system
  • Player vehicles
  • Vehicle dealerships

Y-RP
  • TBD

Download

Y-Core (github)
Y-RP (github)
Misiur is offline   Reply With Quote
Old 31/08/2017, 01:04 AM   #2
Wolfe
Big Clucker
 
Join Date: Feb 2015
Posts: 154
Reputation: 44
Default Re: Y-Core + Y-RP development thread

Interesting glad to see someone doing more with the YSI libary. Are you going to allow anyone to commit to the gamemode?
Wolfe is online now   Reply With Quote
Old 31/08/2017, 01:13 AM   #3
Misiur
High-roller
 
Misiur's Avatar
 
Join Date: Jul 2009
Location: Poland
Posts: 2,407
Reputation: 500
Default Re: Y-Core + Y-RP development thread

Of course! I'm feeling a little alone with advocating for YSI, and I'll accept all pull requests (as long as they conform to my style guide and module structure). Also it's all licensed under MIT, so you can freely use it for your own purposes
Misiur is offline   Reply With Quote
Old 31/08/2017, 02:03 AM   #4
Aerotactics
High-roller
 
Aerotactics's Avatar
 
Join Date: Jun 2013
Location: return 0;
Posts: 1,086
Reputation: 110
Default Re: Y-Core + Y-RP development thread

If this is a showcase of Y-Core, why do we need MySql when Y-core comes with y_ini?
Aerotactics is offline   Reply With Quote
Old 31/08/2017, 02:08 AM   #5
Misiur
High-roller
 
Misiur's Avatar
 
Join Date: Jul 2009
Location: Poland
Posts: 2,407
Reputation: 500
Default Re: Y-Core + Y-RP development thread

Mysql is required, I'm not using Y_ini. Why? I'm a fullstack webdeveloper and I'm working with SQL (MySQL/MariaDB flavour) every day. Even stupid stuff like: get a player with most money on the server. How would you do that using ini files? Either you create a new file collecting all players money and keep track of each and every money change of all players (this is somewhat similar to database indexes), or you open up all files of all players and get the biggest amount. File operations are slow, and in RDBMS such as MySQL it's just a matter of "SELECT MAX(money) FROM players". Also, I'm planning on creating an UCP for Y-Core, and you can't do that easily without a database.
Misiur is offline   Reply With Quote
Old 31/08/2017, 03:06 AM   #6
nG Inverse
Big Clucker
 
Join Date: Feb 2012
Posts: 56
Reputation: 11
Default Re: Y-Core + Y-RP development thread

Interesting!

I was trying to do something similar with a framework I was developing (sampfw - San Andreas Framework), but being more focused on high-level features than low-level functionality. If my time frees up like I am expecting, and this shows some promise, this could definitely be used as a base for it.

I'll be watching this closely!
__________________
[Gamemode] The Area 51 Server - Gamemode Development
[Include] currency.inc
[Include] account.inc
nG Inverse is offline   Reply With Quote
Old 31/08/2017, 04:14 AM   #7
CoaPsyFactor
Gangsta
 
Join Date: Jul 2010
Location: Belgrade, Serbia
Posts: 865
Reputation: 47
Default Re: Y-Core + Y-RP development thread

Pretty neat I must say.

Rep+ From Me
__________________
Quote:
Originally Posted by ThaiLuan View Post
Code:
C:\Users\Administrator\Downloads\Viet-RP\gamemodes\3mien.pwn(112016) : fatal error 101: cannot write to file: "disk full"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Help me! How to fix error
CoaPsyFactor is offline   Reply With Quote
Old 08/09/2017, 03:26 AM   #8
Misiur
High-roller
 
Misiur's Avatar
 
Join Date: Jul 2009
Location: Poland
Posts: 2,407
Reputation: 500
Default Re: Y-Core + Y-RP development thread

I got a little carried away doing factions. Editable by admins and specific faction rank levels, as set in config.inc












There is objects management to be finished (and custom commands) but factions are mostly done.
Misiur is offline   Reply With Quote
Old 09/09/2017, 07:47 AM   #9
Debjit
Big Clucker
 
Debjit's Avatar
 
Join Date: Feb 2017
Location: A Small Town in Hell
Posts: 115
Reputation: 12
Default Re: Y-Core + Y-RP development thread

Umm sounds like there's something new coming up on the table.
__________________
Unbanned! Thanks to Dugi.

Working on a gamemode from scratch based in Desert and Las Venturas.
Theme Location: Real Life Nevada State of US.
Currently looking for professional Mappers.
Debjit is offline   Reply With Quote
Old 09/09/2017, 08:13 AM   #10
wallee
Big Clucker
 
Join Date: Jan 2017
Posts: 152
Reputation: 23
Default Re: Y-Core + Y-RP development thread

good job Misiur, don't push yourself so you don't burn out too soon :P
wallee is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
About core.inc.. Vegas. Scripting Help 6 29/06/2012 10:20 AM
DLL gamemode core insaneHDD Scripting Help 21 10/02/2012 11:22 PM
Core.ini Zeros Help Archive 7 31/05/2010 02:10 PM


All times are GMT. The time now is 10:46 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.