r/CodingHelp 2d ago

[Request Coders] Looking for help /decrypting Assembly-CSharp.dll from a Unity Android game

1 Upvotes

Hi everyone,

I'm looking for some help from someone experienced with Unity game modding/reverse engineering.

I'm trying to revive a very nostalgic game called Smosh Food Battle by creating a patch so it can work again. The problem I'm stuck on is that the Assembly-CSharp.dll appears to be encrypted, and I'm not sure how to recover the decrypted version from memory.

Right now, Food Battle: The Game gets stuck because when it starts up, it tries to contact Defy Media's login/game servers to check in and since those servers were shut down in 2018, the request never gets a response, so the game just sits on a "servers are down" screen and never lets you into single-player.

The code that makes this server call lives inside Assembly-CSharp.dll, the file that holds all of the game's actual logic, but that file is deliberately encrypted by the developers' anti-tamper system, so nobody can open it up and edit it in its current form that's the wall we've been stuck at.

the fix itself is simple: open the file in a .NET decompiler like dnSpy, find the specific method that calls out to the dead server on startup, and edit it so it just skips that check and proceeds straight into the game instead of waiting on a response that will never come effectively telling the game "assume the server said yes" instead of "wait forever for a server that's gone." Once that edit is made and saved, the patched file gets dropped back into the APK in place of the original, the APK gets re-signed, and it's ready to reinstall

If anyone has experience with this, I'd really appreciate your help. If you're willing to help, I'll explain all the details of what I've tried and what I need to accomplish.

From what I understand, the general setup involves:

  • A rooted Android device.
  • Running the game until it reaches the main menu (where the DLL may already be loaded/decrypted in memory).
  • A Unity Mono dumping tool to dump the loaded Assembly-CSharp.dll from memory.
  • ADB to copy the dumped file back to a PC.
  • dnSpyEx or ILSpy to verify that the dumped DLL opens correctly.

I'd really appreciate any guidance.

Thanks in advance!


r/CodingHelp 3d ago

[How to] How do desktop applications implement monthly/yearly subscriptions securely?

0 Upvotes

Hi everyone,

I'm developing a desktop application in Python that I plan to rent out on a monthly, quarterly, and yearly subscription.

I'm trying to figure out the best way to manage license expiration. How can I prevent users from using the software once their subscription has expired? What tools, services, or libraries would you recommend? If possible, I'd prefer free or open-source solutions.

Another concern is piracy. I know it's impossible to make software completely crack-proof, but I'd like to make it as difficult as reasonably possible.

Has anyone here built a subscription-based desktop application before? I'd really appreciate it if you could share how you implemented licensing, subscription validation, and anti-piracy measures, or recommend any good resources or best practices.

Thanks so much for your help!


r/CodingHelp 3d ago

[HTML] Regarding finding work in web and game design.

0 Upvotes

Hi, I started doing The Odin project recently, I'm about half way through. I wanted to learn how to code in regards to things like web design and game devving. After I finish TOD, I wanted to move over to learning how to code in Godot through reading its doc along with other resources.

All this to say, when I have learned these things and have a good bit of practice and knowledge under my belt, how would I go about finding work? If possible, I was hoping to stay freelance, and work with people in independent web devving and game devving. However, I know that's not the most practical path to take. So in that regard, what should I keep my eyes out for?

Also, I keep hearing from nay sayers, things like "AI is going to take out all the code jobs." I doubt this, but also have to ask, is that REALLY a threat I may have to contend with?

Anyway, thanks for reading, I'll take whatever suggestions or advice I can get.


r/CodingHelp 4d ago

[How to be better version of yourself as a coder] Looking for different opinions/advises on coding issues

2 Upvotes

Hey guys, I just have two general coding questions:

first

How do you handle situations when you are stuck with a task and don't know what to do next? (or you feel a task is very complex and you don't know which part you should do first)

-do u leave the task be and go to another task?

-do u ask another person for help?

-do u push yourself above limits?

-*your suggestion here*

second

I ve heard a lot of stories "my manager said I was not fast enough" etc.

What working/coding speed is considered good enough? What do u recommend to do to increase working/coding speed?


r/CodingHelp 6d ago

[C] Help understanding warnings/errors when dereferencing void pointers

Thumbnail
2 Upvotes

r/CodingHelp 6d ago

[How to] Need advice how to create feedback loop for crop growing.

Thumbnail
1 Upvotes

r/CodingHelp 7d ago

[C] Help I have 0 knowledge I need help

Post image
37 Upvotes

Just got my laptop 4 days ago have no idea about coding or anything need help I was following apna vollege C for beginners 10 hrs video but I am stuck here I don't know why mine dosent work


r/CodingHelp 6d ago

[CSS] I inserted an I fram but Idkhow to move it

1 Upvotes

I put in a calander Iframe (image is somewhere here) and it WAS in a good position but after i inserted the title and positioned it. That moved it down and Nothing I do moves it up. I positioned the text and i like where it sits in relation to the calender I just need to move it all up, unsure how though.


r/CodingHelp 8d ago

[How to] UGH.. Morals... please help me out

3 Upvotes

i need to know where i can find public domain content that is ethical that i can train mySLLMs on. i dont want to be a scraping asshole who just steals any and every piece of data he can find without permission. is guttenberg ok?


r/CodingHelp 8d ago

[Open Source] Built an English-to-C game compiler in Rust (Syl), but hit a wall trying to implement Cranelift/native linking. Looking for advice.

Thumbnail
0 Upvotes

r/CodingHelp 10d ago

[Python] Im stuck standing where im at.

Thumbnail
2 Upvotes

r/CodingHelp 12d ago

[Python] How to interpret an unstable learning curve on a model tuned with Hyberband Tuning? Code incorrect or just a weird model?

Post image
5 Upvotes

I have used Hyperband automatic tuning for an ANN model to predict price. After running the model with the automatic tuning, I am obtaining an R2 score of 1.00 that suggest overfitting, however, I am struggling to interpret the training and validation loss over epochs. It is showing as super spiky with each line overlapping the other. I have not seen a learning curve graph look like this before and so am unsure as how to interpret it. Could it be simple that the model is overly complicated? It seems difficult to find resources on graph interpretation.

Here is the code for the actual tuning, in case it is due to a coding error but I am not sure that is the case.

def model_builder(hp):

model = tf.keras.Sequential()

model.add(tf.keras.layers.Flatten(input_dim = (train_final.shape[1])))

#creating activation choices - choosing betweeen relu and tanh

hp_activation = hp.Choice('activation', values = ['relu', 'tanh'])

#creating node choices - maxing unit amounts to 500

hp_layer_1 = hp.Int('layer_1', min_value=1, max_value=500, step=100)

hp_layer_2 = hp.Int('layer_2', min_value=1, max_value=500, step=100)

#creating learning rate choice - choice between 0.01, 0.001, 0.0001

hp_learning_rate = hp.Choice('learning_rate', values = [1e-2, 1e-3, 1e-4])

#specifies first layer after the flatten layer

model.add(tf.keras.layers.Dense(units = hp_layer_1, activation = hp_activation))

#creating the second layer

model.add(tf.keras.layers.Dense(units = hp_layer_2, activation = hp_activation))

model.add(tf.keras.layers.Dense(1, activation='linear'))

model.compile(optimizer=tf.keras.optimizers.Adam(learning_rate = hp_learning_rate),

loss tf.keras.losses.MeanSquaredError(), metrics = ['mean_absolute_error'])

return model

import keras_tuner as kt

#creating the tuner

tuner = kt.Hyperband(model_builder,

objective = 'val_loss',

max_epochs = 50,

factor = 3,

directory = 'dir',

project_name = 'x',

overwrite = True) # makes tuner rewrite over old tuning experiments

#adding early stopping - stops each model from running too long

stop_early = tf.keras.callbacks.EarlyStopping(monitor = 'val_loss', patience = 5)

tuner.search(train_final, y_train, epochs = 50, validation_split = 0.2, callbacks = [stop_early])

best_hp = tuner.get_best_hyperparameters(num_trials=1)[0]

best_hp.values

#obtaining the best model

best_model = tuner.get_best_models(num_models = 1)[0]

history = best_model.fit(train_final, y_train, epochs = 50, validation_split = 0.2, callbacks=[stop_early])

tuned_df = pd.DataFrame(history.history)

#running epoch loss visual def

epoch_loss_visual(tuned_df, model_name = 'Automatic Tuning Model')

Could it be an issue with the code itself causing the issue or is it simply the way the model is? If it's a case of it's just a bad model, I do not need to improve at the moment, but do need to understand the results, especially that of the learning curve representation.


r/CodingHelp 12d ago

[Python] LZ77 compression algorithm is making the compressed file bigger than original

2 Upvotes

I was recently toying around with some compression, just trying to understand it from the basics. I learned about the LZ77, LZ78, and LZW algorithms in the last couple of days, understood them, and when implementing LZ77, every time I try to compress a txt file, the output file gets bigger. The compression is done right coz when I decompress the compressed file, I get the exact text.

Need help understanding what I am doing wrong, or am I missing something


r/CodingHelp 13d ago

[How to] Extract GPX file from share strava activity link

0 Upvotes

hi i was creating my own app that create the 3d video of activity with more features and complete control of the camera / map style and much more, but right now it is inconvenient, i have to download the gpx file and then upload it my app, is there an alternative

https://reddit.com/link/1urhvu4/video/vgq63fnbc5ch1/player


r/CodingHelp 14d ago

[HTML] How do you actually use the user's input in a textbox

Post image
5 Upvotes

r/CodingHelp 16d ago

[Python] I built Turn Based Combat game using OOP in python!

2 Upvotes

Hey everyone

I just finished building a small RPG game in Python and wanted to share it here for feedback.

It’s a turn-based combat game where you fight different enemies like Goblins, Skeletons, Dark Mages, and a final boss (Ancient Dragon).

Features:

- Turn-based combat system

- Leveling + XP progression

- Weapons & armor equipment system

- Inventory system (potions, items, etc.)

- Quests with rewards (gold + XP)

- Different enemy scaling based on level

- Boss fight with multiple phases

I built it mainly to practice OOP and game logic in Python, and I learned a lot about structuring systems like combat, inventory, and progression.

It’s still not fully balanced and I know there are things I can improve, especially:

- Damage balancing

- XP progression

- UI/UX improvements

Would really appreciate any feedback or suggestions

GitHub:

https://github.com/Ezz08/DragonFall-GameProject


r/CodingHelp 20d ago

[How to] I Know the Basics, but I Still Can't Build Programs

6 Upvotes

Hey everyone, I've been studying programming for 2 years at school. We started with algorithms, then C, C++, and now Python. The problem is that I feel like I only learn the tools and syntax, but I don't know how to actually use them to solve problems.

I struggle to understand what a problem is asking or where to even start, and I definitely can't build medium-sized programs on my own. Has anyone else been through this? How can I improve my problem-solving and programming skills?


r/CodingHelp 21d ago

[Java] Looking for a DSA grind partner (working professional preferred)

3 Upvotes

Hey everyone,

I'm looking for someone to grind DSA together — preferably a working professional since I can relate better to that schedule and commitment level.

A bit about me: I've solved around 200 problems on LeetCode so far and targeting product-based companies. Not a beginner but definitely not done yet.

What I'm thinking:

We decide together which sheet to follow (Striver, NeetCode, Blind 75 — open to discussion)

Figure out a daily/weekly target that works for both our schedules

Hold each other accountable and discuss problems regularly

Nothing too formal, just consistency and genuine effort from both sides.

DM me if you're interested!


r/CodingHelp 22d ago

[How to] Command to change desktop folder?

2 Upvotes

First time here, I have an oddly specific question. I recently got into customizing my computer, and have been messing around with Autohotkey shortcuts. That got me wondering, is there some command I could use with a keyboard shortcut to change the folder displayed on the Windows desktop? I know you can create multiple desktops, but I am curious now, and it would function slightly differently


r/CodingHelp 25d ago

[Open Source] how to solve this yt-dlp, ffmpeg error.

Thumbnail
1 Upvotes

r/CodingHelp 26d ago

[How to] Hi, my name is Duevermicelli, and I'm a tutorial addict.

6 Upvotes

(Said it. Felt that.)

I'm a junior dev with no senior on my team to ask questions or check my thinking it's just me, Stack Overflow, and my own spiraling thoughts. Here's my problem: I'll watch a coding tutorial, follow along, feel like a genius the whole time... and then the second I try to solve something on my own, my brain just wipes. Like I'm hearing about loops for the first time in my life. No memory, no instinct, nothing.

So I want to ask the people who've actually gotten good at this how did you learn to code, for real? Not "watch more tutorials" like, what's the actual process? Do you stop the video and try it yourself first? Do you rewatch things? How do you turn "I watched someone do it" into "I can do it"?

Genuinely just want a process I can follow instead of doom-scrolling YouTube and feeling like I'm not retaining anything. Any structure, habits, or hard truths welcome

Really appreciate the guidance or any reference


r/CodingHelp 27d ago

[Other Code] Help Please I Beg of Thee bfgdijbispiagsnpsnxlp

Thumbnail
1 Upvotes

r/CodingHelp 28d ago

[Other Code] Two crates each bundle a different libcrypto (OpenSSL vs BoringSSL) → same symbol names, heap corruption. Is there a cleaner fix than /FORCE:MULTIPLE?

Thumbnail
1 Upvotes

r/CodingHelp 29d ago

[Javascript] I'm learning JS and I dunno why my randomColour function isnt working (Ik its a silly problem but I couldnt figure it out)

Post image
12 Upvotes

r/CodingHelp 28d ago

[C++] help in problem solving for c++

4 Upvotes

I'm a complete beginner in c++ and I'm trying to revive whatever I've learnt about it in my mind as I've only taken the academic course in uni about it so I'm trying to revive it by problem solving so is there any source where I could find great questions on the internet where I could solve them and they could help me to become prof in the language??