ALC MAXScript issue

ALC MAXScript issue

there4_virtual
Observer Observer
3,725 Views
7 Replies
Message 1 of 8

ALC MAXScript issue

there4_virtual
Observer
Observer

This error keeps popping up on startup resulting in 3dsmax crash.

I do not have subscription to get this issue resolved.

Please help.

0 Likes
3,726 Views
7 Replies
Replies (7)
Message 2 of 8

drew_avis
Autodesk
Autodesk

Hi there, please see this article for a discussion of how to identify and fix ALC script issues:

https://forums.autodesk.com/t5/3ds-max-forum/potential-issues-caused-by-third-party-maxscript-files-...

 

Hope that helps,

Drew



Drew Avis
Content Experience Designer
Message 3 of 8

denisT.MaxDoctor
Advisor
Advisor

Do you have this issue on just 3DS MAX loading or on some file opening?

If the issue is opening a file, could you post it here or send me it in private please?

I really like all such "abominations" 🙂

 

0 Likes
Message 4 of 8

denisT.MaxDoctor
Advisor
Advisor

There are two types of kinda "Viruses" which some 3DS MAX users could already meet. 

One I call "CleanBeta", and another I call "CRP scripts". 

Judging by the way they are written and how they spread, they have one author.
The author did not want to write the virus, he was just an idiot, and he did it. But I want to make some note - the author, of course, an idiot, but not a scumbag.
Therefore, he did not create any other more sophisticated methods of hiding and spreading his creation.

 

Virus "CleanBeta" using two "dummy" (actually helper) nodes with names  "×þ×ü" and "¡¡×ý×û". They have scripted scale controller with all garbage inside. To find infected files you can (and I recommend it) just search "cleanbeta" substring in all suspicious *.max, and max script files.

After that we need to delete all infected max script files from the system and clean infected max files.

A simple way to do it is:

#1 load every infected max file one-by-one

#2 remove all callbacks and run my script below:

(
	callbacks.removescripts()
	bad_nodes = #()
	for name in #("×þ×ü", "¡¡×ý×û") do (join bad_nodes (getnodebyname name all:on))
	for s in (ss = getclassinstances scale_script) where (matchpattern s.script pattern:"*cleanbeta*") do
	(
		join bad_nodes (refs.dependentnodes s)
	)
	delete bad_nodes
)

 #3 save the file 

 

(don't do any other scene operation including time change).

 

It's about "CleanBeta"

 

 

Another "virus" is "CRP scripts"... I will tell about it a little later.

 

BTW. Hey, an Author of there scripts. Please send me a message if you do not agree with my definition for you as an idiot. I'm ready to argue with you. Thanks

 

 

Message 5 of 8

denisT.MaxDoctor
Advisor
Advisor

ahh... forgot to say... don't use any scripts and tools those say they can protect your system on the fly from effect of these 'viruses' and prevent infection. Just clean all infected max files first.    

The disease should be treated, but not concealed. Any "hidden" methods of treatment just make us to drop our guard 🙂

0 Likes
Message 6 of 8

denisT.MaxDoctor
Advisor
Advisor

now I want to continue telling about "CRP scripts".

This 'virus' is worse then "CleanBeta". It causes loosing UNDO, deleting some cameras and lights. The author probably that scene feels better without these 'accessories'.

The 'virus' usually and enough uses persistent global to store the garbage. Additionally it infects some max scripts (usually first script from max\scripts\startup) with extra code.

Please remember that I said 'usually' two times (!) because there might be another versions.

 

But for usual situation the treatment is:

#1 search all suspicious max and max script files for substring "crp_" 

#2 delete all max scripts which matches pattern "*crp_*script*". Some of them could be useful but just infected... true. but let it be your price for the loss of vigilance 😛

#3 open infected files one-by-one

#4 remove callback scripts and run the script:  

 

callbacks.removescripts()
bad = for p in persistents.gather() where matchpattern p pattern:"*crp_*script*" collect ( persistents.remove p; p )

#5 save the file 

#4 search for "crp_" substring again and delete all still existent max scripts from the system

 

Later I will tell a little about why I said above "usually" (remember?) instead of "always"

 

 

 

 

Message 7 of 8

denisT.MaxDoctor
Advisor
Advisor

ah ... forgot to say. if these viruses have not one but several authors, that is, more idiots than I had hoped, but each of them can send me a message and challenge my judgment

0 Likes
Message 8 of 8

denisT.MaxDoctor
Advisor
Advisor

i personally use AstroGrep to search strings in both text and binary files 

https://sourceforge.net/projects/astrogrep/ 

0 Likes