YSI Documentation
#1

Hello,

Is there any near-complete documentation of the most current YSI? It seems everything on this forum is outdaded and all the GitHub profiles don't have any punlished with the source.

Thanks!
Reply
#2

Maybe you can find this useful
http://ysi.wikia.com/wiki/YSI_Wiki
Reply
#3

Quote:
Originally Posted by Eoussama
Посмотреть сообщение
Maybe you can find this useful
http://ysi.wikia.com/wiki/YSI_Wiki
Thanks for the reply. I found that, and despite having some content, it's missing a lot. I was hoping there was something more complete (and up to date).
Reply
#4

I believe if you go to each file and look at the comments you might find something there?
Reply
#5

Thanks. Seems I left out a lot of information in my first post.

The documentation in the code files is out-of-date, posts on these forums are out-of-date or deleted, and documentation I've found connected with the source (from GitHub) is incomplete. I'm looking for YSI 4.0's updated documentation. Any ideas?
Reply
#6

What part of YSI 4.0's documentation are you looking for?
Reply
#7

Look at your own files.
****** left every function he made fairly documented.
It is relevant to each copy and every version he released.
Reply
#8

Quote:
Originally Posted by ******
Посмотреть сообщение
So some dick threw his toys out of his pram and deleted all his old topics, including the vast majority of what documentation there was. Several awesome people managed to restore a lot of the tutorials so there's that.

There's also some stuff on the wiki:

https://sampwiki.blast.hk/wiki/YSI

Some more stuff hidden on the wiki:

https://sampwiki.blast.hk/wroot/index.ph...ge&oldid=26153

Another wiki:

http://ysi.wikia.com/wiki/YSI_Wiki

YET ANOTHER wiki:

https://github.com/Misiur/YSI-Includes/wiki

None of them overly complete, because honestly it is boring (I know I should do more, but never did). YSI 1.0 came with a pretty extensive readme, but I don't even have that anymore, and even if I did I doubt any of it would be relevant now.
You're no dick. :((((((
Reply
#9

Thanks for the responses. I'll take a look through those links and try and piece together what I need.

This is a current issue I've run into. It seems y_hooks doesn't support hooked functions of different states. For example:
pawn Код:
hook OnGameModeInit()
{
    g_ActiveTeams[ATTACK] = Group_Create("Attack");
    g_ActiveTeams[DEFEND] = Group_Create("Defend");
    return 1;
}

hook OnGameModeInit() <currentMode:mode1>
{
    g_ActiveClasses[...] = Class_AddWithGroupSet(Group: DEFEND, 287, ...);
        // ...

    return 1;
}

hook OnGameModeInit() <currentMode:mode2>
{
    // stop compiler warning
    return 1;
}
Throws the following error:
Код:
classes.pwn(53) : error 021: symbol already defined: "@yH_OnGameModeInit@006"
classes.pwn(71) : error 021: symbol already defined: "@yH_OnGameModeInit@006"
Any ideas on getting around this without editing y_hooks itself? I would guess this could be avoided by putting the definitions in different files. Though that would be my last resort due to the script layout.
Reply
#10

y_hooks wasn't created to work within 1 file I don't believe? Might be wrong but..
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)