Post: Where am I going wrong (Adding infinite scroll to source engine base)
05-23-2016, 05:22 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I have been at this for months off and on no one has ever really been able to help me succeed in this and I am failing every time with 2 script errors, Anyone got any ideas or on how to do this?

This is what I changed so far with no luck

    
updateScrollbar2()//infinite scrolling
{
if(self.menu.curs[self.menu.currentmenu]<0)
self.menu.curs[self.menu.currentmenu] = self.menu.menuopt[self.menu.currentmenu].size-1;

if(self.menu.curs[self.menu.currentmenu]>self.menu.menuopt[self.menu.currentmenu].size-1)
self.menu.curs[self.menu.currentmenu] = 0;

if(!isDefined(self.menu.menuopt[self.menu.currentmenu][self.menu.curs[self.menu.currentmenu]-2])||self.menu.menuopt[self.menu.currentmenu].size<=5)
{
for(i = 0; i < 5; i++)
{
if(isDefined(self.menu.menuopt[self.menu.currentmenu][i]))
self.Private["options"][i] setSafeText(self.menu.menuopt[self.menu.currentmenu][i]);
else
self.Private["options"][i] setSafeText("");

if(self.menu.curs[self.menu.currentmenu] == i)
self.Private["options"][i] affectElement("alpha", .2, 1);//current menu option alpha is 1
else
self.Private["options"][i] affectElement("alpha", .2, .3);//every other option besides the current option
}
self.menu.bar.y = -50 + (25*self.menu.curs[self.menu.currentmenu]);//when the y value is being changed to move HUDs, make sure to change -50
}
else
{
if(isDefined(self.menu.menuopt[self.menu.currentmenu][self.menu.curs[self.menu.currentmenu]+2]))
{
xePixTvx = 0;
for(i=self.menu.curs[self.menu.currentmenu]-2;i<self.menu.curs[self.menu.currentmenu]+3;i++)
{
if(isDefined(self.menu.menuopt[self.menu.currentmenu][i]))
self.Private["options"][xePixTvx] setSafeText(self.menu.menuopt[self.menu.currentmenu][i]);
else
self.Private["options"][xePixTvx] setSafeText("");

if(self.menu.curs[self.menu.currentmenu]==i)
self.Private["options"][xePixTvx] affectElement("alpha", .2, 1);//current menu option alpha is 1
else
self.Private["options"][xePixTvx] affectElement("alpha", .2, .3);//every other option besides the current option

xePixTvx ++;
}
self.menu.bar.y = -50 + (25*2);//when the y value is being changed to move HUDs, make sure to change -50
}
else
{
for(i = 0; i < 5; i++)
{
self.Private["options"][i] setSafeText(self.menu.menuopt[self.menu.currentmenu][self.menu.menuopt[self.menu.currentmenu].size+(i-5)]);

if(self.menu.curs[self.menu.currentmenu]==self.menu.menuopt[self.menu.currentmenu].size+(i-5))
self.Private["options"][i] affectElement("alpha", .2, 1);//current menu option alpha is 1
else
self.Private["options"][i] affectElement("alpha", .2, .3);//every other option besides the current option
}
self.menu.bar.y = -50 + (25*((self.menu.curs[self.menu.currentmenu]-self.menu.menuopt[self.menu.currentmenu].size)+5));//when the y value is being changed to move HUDs, make sure to change -50
}
}
}

affectElement(type, time, value)
{
if(type == "x" || type == "y")
self moveOverTime(time);
else
self fadeOverTime(time);

if(type == "x")
self.x = value;
if(type == "y")
self.y = value;
if(type == "alpha")
self.alpha = value;
if(type == "color")
self.color = value;
}
(adsbygoogle = window.adsbygoogle || []).push({});
05-23-2016, 06:55 AM #2
DoraTheKiller97
Treasure hunter
You're missing a function or two. Find out which one(s) you are missing with this

You must login or register to view this content.

Fix those then go on from there. Smile
05-23-2016, 06:58 AM #3
Originally posted by dorathekiller97 View Post
You're missing a function or two. Find out which one(s) you are missing with this

You must login or register to view this content.

Fix those then go on from there. Smile


Sadly I am not on PS3, Xbox gives errors but only says 2 script errors, I believe i have all the functions I have skimmed that code around 10 times now and been trying for weeks :(
05-23-2016, 07:05 AM #4
DoraTheKiller97
Treasure hunter
Originally posted by TheNiceUb3r View Post
Sadly I am not on PS3, Xbox gives errors but only says 2 script errors, I believe i have all the functions I have skimmed that code around 10 times now and been trying for weeks :(

Oh! In that case, use the tesseract! Lucky for you i happen to use Xbox too Winky Winky

You must login or register to view this content. <--- You need these two things. The RSA checks removed default_mp.xex. And the version of the tesseract that returns errors. <3

Virus scan for both files: You must login or register to view this content.
You must login or register to view this content.

If it works correctly, you can only see one at a time, but it will kick you out of the game, tell you how many script errors and and say "Solve Function: "Blah blah""

It will make your game unstable though. So as soon as the game starts to load, restart the default_mp.xex and take the tesseract off. Smile
05-23-2016, 07:05 AM #5
Originally posted by dorathekiller97 View Post
Oh! In that case, use the tesseract! Lucky for you i happen to use Xbox too Winky Winky

You must login or register to view this content. <--- You need these two things. The RSA checks removed default_mp.xex. And the version of the tesseract that returns errors. <3

Virus scan for both files: You must login or register to view this content.
You must login or register to view this content.


Like will this give the EXACT error, Or do as my console does now and say, 2 script errors.
05-23-2016, 07:06 AM #6
Originally posted by dorathekiller97 View Post
Oh! In that case, use the tesseract! Lucky for you i happen to use Xbox too Winky Winky

You must login or register to view this content. <--- You need these two things. The RSA checks removed default_mp.xex. And the version of the tesseract that returns errors. <3

Virus scan for both files: You must login or register to view this content.
You must login or register to view this content.


Because I have had both of those before...
05-23-2016, 07:08 AM #7
DoraTheKiller97
Treasure hunter
Originally posted by TheNiceUb3r View Post
Because I have had both of those before...


Yes it will actually return the error, and tell you what you're missing. Smile
05-23-2016, 07:09 AM #8
Originally posted by dorathekiller97 View Post
Yes it will actually return the error, and tell you what you're missing. Smile


If I do get errors its always some random ass error for kick and stuff lol, Its really annoying especially when you are wondering what is missing,

The following user thanked TheNiceUb3r for this useful post:

DoraTheKiller97
05-23-2016, 07:10 AM #9
DoraTheKiller97
Treasure hunter
Originally posted by TheNiceUb3r View Post
If I do get errors its always some random ass error for kick and stuff lol, Its really annoying especially when you are wondering what is missing,

I know, like "Too many parameters" those pop up all the time. But this will actually tell you what you're missing. Smile
05-23-2016, 07:12 AM #10
Originally posted by dorathekiller97 View Post
I know, like "Too many parameters" those pop up all the time. But this will actually tell you what you're missing. Smile


Have you ever tried to mess with infinite scroll before? Honestly even at this I am not completely sure what I am doing with it.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo