### Define mod properties Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Development/GettingStarted Example of a modname.properties file content. ```properties classname=org.gotti.wurmunlimited.mods.cropmod.CropMod classpath=cropmod.jar disableWeeds=true ``` -------------------------------- ### Configure Mod Properties Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Installation Example of a .properties file configuration where lines starting with # are ignored and active settings require the # to be removed. ```properties # Enable announcing of players # # Default value. The option is not enabled but contains the default value from the mod #announcePlayers=true # Enable announcing of player logout # # Enabled configuration option. The "#" sign at the start was removed and the value changed announcePlayerLogout=false ``` -------------------------------- ### Implement onServerStarted hook Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Mods-ScriptRunner Executes logic once after the server has fully started. ```javascript var Server = Packages.com.wurmonline.server.Server; function onServerStarted() { } ``` -------------------------------- ### Register a ModAction on Server Start Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Mods-ActionDemo Register a custom ModAction implementation during the server startup lifecycle. ```java @Override public void onServerStarted() { ModActions.registerAction(new DemoAction()); } ``` -------------------------------- ### InvokeHandler Logic Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Development/ModStructure Examples of how method calls are translated and invoked dynamically within an InvokeHandler. ```java object.method(arg1, arg2) ``` ```java invokeHandler.invoke(object, method, new Object[] { arg1, arg2 }) ``` ```java method.invoke(object, args) ``` ```java public Object invoke(Object object, Method method, Object[] args) throws Throwable { doStuffBefore(); Object returnValue = null; if (args[0] > onlyCallIfGreater) { args[1] = "newValue"; returnValue = method.invoke(object, args); } doStuffAfter(); return returnValue; } ``` -------------------------------- ### Shutdown server on startup Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Mods-ScriptRunner Immediately shuts down the server after startup, useful for automated testing. ```javascript var Server = Packages.com.wurmonline.server.Server; function onServerStarted() { Server.getInstance().shutDown(); } ``` -------------------------------- ### Define mod filesystem structure Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Development/GettingStarted Expected directory layout for a mod. ```text mods -> cropmod.properties -> cropmod -> cropmod.jar ``` -------------------------------- ### Server Log Confirmation Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Custom-maps Expected log output indicating the server pack has been successfully added. ```text ServerPackMod: Added pack F18603CBAC21775433D54D832FC1EE3038A21AF3 for pack mods\myservermap\playtime.jar ``` -------------------------------- ### Client Log Confirmation Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Custom-maps Expected client-side log output indicating the server pack has been received and added. ```text INFORMATION: Got server pack F18603CBAC21775433D54D832FC1EE3038A21AF3 (http://serveraddress:52646/packs/F18603CBAC21775433D54D832FC1EE3038A21AF3) INFORMATION: Added server pack F18603CBAC21775433D54D832FC1EE3038A21AF3 ``` -------------------------------- ### Greet player on login via event message Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Mods-ScriptRunner Sends a system message to the player upon login. ```javascript var ProtoConstants = Packages.com.wurmonline.shared.constants.ProtoConstants; function onPlayerLogin(player) { var message = "Welcome to Wurm, " + player.getName() + "!"; player.getCommunicator().sendSafeServerMessage(message, ProtoConstants.M_SYSTEM); } ``` -------------------------------- ### Execute patcher scripts Source: https://github.com/ago1024/wurmservermodlauncher/blob/develop/README.md Commands to run the patcher on different operating systems. ```batch patcher.bat ``` ```bash ./patcher.sh ``` -------------------------------- ### Implement ModAction, BehaviourProvider, and ActionPerformer Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Mods-ActionDemo Recommended pattern to implement all required interfaces in a single class by returning 'this'. ```java public class TestAction implements ModAction, BehaviourProvider, ActionPerformer { @Override public BehaviourProvider getBehaviourProvider() { return this; } @Override public ActionPerformer getActionPerformer() { return this; } ... } ``` -------------------------------- ### Bytecode Disassembly and Replacement Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Development/BytecodeManipulation The original bytecode sequence and the corresponding replacement using a static method call. ```text // Call cultist.getLevel() 1013: aload cultist 1015: invokevirtual com/wurmonline/server/players/Cultist.getLevel:()B // (double)(cultist.getLevel() * 10) 1018: bipush 10 1020: imul 1021: i2d // Read meditation.knowledge 1022: aload meditation 1024: getfield com/wurmonline/server/skills/Skill.knowledge:D // (double)(cultist.getLevel() * 10) - meditation.knowledge 1027: dsub // compare with 30.0 1028: ldc2_w 30.0 1031: dcmpg // if less jump to 1047 1032: iflt 1047 // Read meditation.knowledge 1035: aload meditation 1037: getfield com/wurmonline/server/skills/Skill.knowledge:D // Compare with 90 1040: ldc2_w 90.0 1043: dcmpl // if less or equal jump to 1066 1044: ifle 1066 // Set mayIncreaseLevel to true 1047: iconst_1 1048: istore mayIncreaseLevel ``` ```text 1013: aload cultist 1015: aload meditation 1017: invokestatic net/xyp/wurmunlimited/mods/medmod/MedMod.getMayIncreaseLevel:(Lcom/wurmonline/server/players/Cultist;Lcom/wurmonline/server/skills/Skill;)Z 1020: ifeq 1066 1023: nop ... 1046: nop ``` -------------------------------- ### Configure Server Map Mod Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Custom-maps Properties file configuration for the custom map mod. ```properties classname=org.gotti.wurmunlimited.modloader.SimpleMod serverPacks=playtime.jar ``` -------------------------------- ### Create and Register an ActionEntry Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Mods-ActionDemo Request a new action ID, define the entry with types, and register it using ModActions. ```java actionId = (short) ModActions.getNextActionId(); actionEntry = ActionEntry.createEntry(actionId, "Fish", "fishing", new int[] { 6 /* ACTION_TYPE_NOMOVE */, 48 /* ACTION_TYPE_ENEMY_ALWAYS */, 36 /* ACTION_TYPE_ALWAYS_USE_ACTIVE_ITEM */}); ModActions.registerAction(actionEntry); ``` -------------------------------- ### Implement onServerPoll hook Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Mods-ScriptRunner Executes logic on every server loop, approximately once per second. ```javascript function onServerPoll() { } ``` -------------------------------- ### Implement onPlayerLogin hook Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Mods-ScriptRunner Executes logic whenever a player logs into the server. ```javascript function onPlayerLogin(player) { var name = player.getName(); } ``` -------------------------------- ### Set execution permissions on Linux Source: https://github.com/ago1024/wurmservermodlauncher/blob/develop/README.md Required step for Linux users to enable the patcher script before execution. ```bash chmod +x patcher.sh ``` -------------------------------- ### Initialize Action Duration in ActionPerformer Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Mods-ActionDemo Set the action duration and notify the client when the action counter is at 1.0f. ```java if (counter == 1.0f) { performer.getCommunicator().sendNormalServerMessage("You start the action."); final int time = 50; // 10th of seconds. 50 means 5 seconds performer.getCurrentAction().setTimeLeft(time); performer.sendActionControl("Performing action", true, time); return false; } ``` -------------------------------- ### Method Hooking Concept Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Development/ModStructure Demonstrates the transformation of a standard method into a hooked version using a wrapper. ```java public void getNumber(int a) { return a; } ``` ```java public void getNumberOriginal(int a) { return a; } public void getNumber(int a) { return getNumberOriginal(a + 1); } ``` ```java public void getNumber$1(int a) { return a; } public void getNumber(int a) { return HookManger.getInstance().invoke(this, "ClassName.getNumber$1", new Object[] { a }); } ``` -------------------------------- ### Greet player on login via PM Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Mods-ScriptRunner Sends private messages to the player upon login. ```javascript function onPlayerLogin(player) { function showPM(message) { player.showPM("Server", "Server Info", message, false); } showPM("Hello " + play.getName() + "!"); showPM("Welcome to our server."); } ``` -------------------------------- ### Configure praying restrictions Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Mods-SpellMod Remove the prayer delay and the daily prayer limit. ```properties noPrayerDelay=true unlimitedPrayers=true ``` -------------------------------- ### Configure favor costs Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Mods-SpellMod Limit the favor cost of spells to a specific value. ```properties favorLimit=90 ``` -------------------------------- ### Register a Callback to a Server Class Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Callback-API Use HookManager to attach a callback object to a specific server class with a defined field name. ```java CtClass ctCreatureStatus = classPool.get("com.wurmonline.server.creatures.CreatureStatus"); HookManager.getInstance().addCallback(ctCreatureStatus, "creatureagemod", callback); ``` -------------------------------- ### Announce player login to server Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Mods-ScriptRunner Broadcasts a message to the server when a non-admin player logs in. ```javascript var MessageServer = Packages.com.wurmonline.server.MessageServer; var ProtoConstants = Packages.com.wurmonline.shared.constants.ProtoConstants; function onPlayerLogin(player) { if (player.getPower() == 0) { var message = "Player " + player.getName() + " has logged in."; MessageServer.broadCastSafe(message, ProtoConstants.M_SYSTEM); } } ``` -------------------------------- ### Instrument Server Code with Callbacks Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Callback-API Use Javassist ExprEditor to replace existing field access with a call to the registered callback method. ```java CtMethod method = ctClass.getMethod("pollAge", "(I)Z"); method.instrument(new ExprEditor() { @Override public void edit(FieldAccess f) throws CannotCompileException { f.replace("$_ = creatureagemod.getAdjustedLastPolledAge(this, reborn);"); } }); ``` -------------------------------- ### Define a Callback Method Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Callback-API Annotate a method with @CallbackApi to expose it to the server's callback interface. ```java @CallbackApi public long getAdjustedLastPolledAge(CreatureStatus creatureStatus, boolean reborn) { return creatureStatus.lastPolledAge + 5; } ``` -------------------------------- ### Implement onItemTemplatesCreated hook Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Mods-ScriptRunner Executes logic once after item templates have been initialized. ```javascript function onItemTemplatesCreated() { } ``` -------------------------------- ### Define Map Mappings Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Custom-maps Content for the mappings.txt file required within the map pack archive. ```text map.playtime = Playtime.png ``` -------------------------------- ### Define a simple BML node Source: https://github.com/ago1024/wurmservermodlauncher/wiki/BML Syntax for a node without attributes or children. ```text type; ``` -------------------------------- ### Implement onPlayerLogout hook Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Mods-ScriptRunner Executes logic whenever a player logs out of the server. ```javascript function onPlayerLogout(player) { var name = player.getName(); } ``` -------------------------------- ### Implement a WurmMod class Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Development/GettingStarted A template for a mod class implementing WurmMod, Configurable, Initable, and PreInitable interfaces. ```java public class CropMod implements WurmMod, Configurable, Initable, PreInitable { private boolean disableWeeds = true; private Logger logger = Logger.getLogger(this.getClass().getName()); // // The method configure is called when the mod is being loaded // Configuration options shouldbe set here. Don't initialize the hooks // here. It may break other mods // @Override public void configure(Properties properties) { disableWeeds = Boolean.valueOf(properties.getProperty("disableWeeds", Boolean.toString(disableWeeds))); logger.log(Level.INFO, "disableWeeds: " + disableWeeds); } // // PreInit method // This method should be used to change the class bytecode. The hooks may rename // methods so referencing to a method by name later in the initialisation process // may return a wrpper method // public void preInit() { // Nothing to do here in this example } // // Init method // All the intialisation should happen here // public void init() { // // We initialize a method hook that gets called right before CropTilePoller.checkForFarmGrowth is called // if (disableWeeds) { try { // // To make sure we hook the correct method the list of method parameter types is compiled // CtClass[] paramTypes = { CtPrimitiveType.intType, CtPrimitiveType.intType, CtPrimitiveType.intType, CtPrimitiveType.byteType, CtPrimitiveType.byteType, HookManager.getInstance().getClassPool().get("com.wurmonline.mesh.MeshIO"), CtPrimitiveType.booleanType }; // // next we register the hook for // com.wurmonline.server.zones.CropTilePoller.checkForFarmGrowth(int, int, int, byte, byte, MeshIO, boolean) // HookManager.getInstance().registerHook("com.wurmonline.server.zones.CropTilePoller", "checkForFarmGrowth", Descriptor.ofMethod(CtPrimitiveType.voidType, paramTypes), new InvocationHandlerFactory() { @Override public InvocationHandler createInvocationHandler() { return new InvocationHandler() { // // The actual hook is an InvocationHandler. It's invoke method is called instead of the hooked method. // The object, method and arguments are passed as parameters to invoke() // @Override public Object invoke(Object object, Method method, Object[] args) throws Throwable { // // When the hook is called we can do stuff depending on the input parameters // Here we check if the tileAge is 6 (the second ripe stage) // byte aData = ((Number) args[4]).byteValue(); final int tileState = aData >> 4; int tileAge = tileState & 0x7; if (tileAge == 6) { // tileAge is 6. Advancing it further would create weeds. // Therefore we just exit here. // return null is required if the hooked method has a void return type return null; } // // tileAge is not 6. We just continue by calling the hooked method // return method.invoke(object, args); } }; } }); } catch (NotFoundException e) { throw new HookException(e); } } } } ``` -------------------------------- ### Generating Method Descriptors Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Development/ModStructure Uses javassist to generate a method descriptor for a specific signature. ```java CtClass returnType = CtPrimitiveType.voidType; CtClass[] paramTypes = { CtPrimitiveType.intType, HookManager.getInstance().getClassPool().get("java.lang.String") }; Descriptor.ofMethod(returnType, paramTypes); ``` -------------------------------- ### Check Action Completion in ActionPerformer Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Mods-ActionDemo Verify if the action duration has elapsed to finish the action. ```java int time = performer.getCurrentAction().getTimeLeft(); if (counter * 10.0f > time) { performer.getCommunicator().sendNormalServerMessage("You finish the action."); return true; } ``` -------------------------------- ### Implement onPlayerMessage hook Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Mods-ScriptRunner Executes logic whenever a player sends a chat message. ```javascript function onPlayerMessage(communicator, message, channel) { var player = communicator.getPlayer(); } ``` -------------------------------- ### Configure spell access Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Mods-SpellMod Grant priests access to all spells or all spells of their specific light. ```properties allowAllSpells=true allowLightSpells=true ``` -------------------------------- ### Log player messages Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Mods-ScriptRunner Logs all incoming player chat messages to the server logs. ```javascript var Logger = Packages.java.util.logging.Logger; function onPlayerMessage(communicator, message, title) { var player = communicator.getPlayer().getName().toLowerCase(); var channel = title.replace(/^:/,"").toLowerCase(); var logger = "players." + player + "." + channel; Logger.getLogger(logger).info(message); } ``` -------------------------------- ### Registering a Hook Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Development/ModStructure Registers a hook for a specific class and method using an InvocationHandlerFactory. ```java HookManager.getInstance().registerHook("com.wurmonline.server.players.PlayerInfo", "checkPrayerFaith", "()Z", new InvocationHandlerFactory() { @Override public InvocationHandler createInvocationHandler() { return new InvocationHandler() { @Override public Object invoke(Object object, Method method, Object[] args) throws Throwable { DbPlayerInfo dbPlayerInfo = (DbPlayerInfo) object; if (unlimitedPrayers) { dbPlayerInfo.numFaith = 0; } if (noPrayerDelay) { dbPlayerInfo.lastFaith = 0; } return method.invoke(object, args); } }; } }); ``` -------------------------------- ### Update Server Map Name Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Custom-maps SQL command to set the map name in the server database. ```sql update "SERVERS" set "MAPNAME" = 'Playtime' where local = 1 ``` -------------------------------- ### Original and Target Conditional Logic Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Development/BytecodeManipulation The original conditional check in Cults.java and the desired logic modification. ```java if (cultist.getLevel() * 10 - meditation.knowledge < 30.0 || meditation.knowledge > 90.0) { mayIncreaseLevel = true; difficulty2 = 1 + cultist.getLevel() * 10; } ``` ```java if (cultist.getLevel() * levelUpMultiplier + 10 >= meditation.knowledge) { mayIncreaseLevel = true; difficulty2 = 1 + cultist.getLevel() * 10; } ``` -------------------------------- ### HookManager.addCallback Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Callback-API Registers a callback object to a specific server class, making it available as a static field for use in bytecode instrumentation. ```APIDOC ## HookManager.addCallback ### Description Registers a callback object to a target server class. The callback is added as a static field to the class, allowing it to be invoked from instrumented code. ### Method `HookManager.getInstance().addCallback(CtClass ctClass, String name, Object callback)` ### Parameters - **ctClass** (CtClass) - Required - The target server class to which the callback will be added. - **name** (String) - Required - The name of the static field that will hold the callback instance. - **callback** (Object) - Required - The object containing methods annotated with @CallbackApi or all public methods to be exposed. ``` -------------------------------- ### Target Bytecode Replacement Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Development/BytecodeManipulation The desired final state of the code after bytecode manipulation. ```java if (MeditationMod.mayIncreaseLevel(cultist, meditation)) { mayIncreaseLevel = true; difficulty2 = 1 + cultist.getLevel() * 10; } ``` -------------------------------- ### Configure priest restrictions Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Mods-SpellMod Enable or disable the removal of priest restrictions such as paving or mining. ```properties removePriestRestrictions=true ``` -------------------------------- ### Replace if-condition in Java method Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Development/BytecodeManipulation Uses Javassist to locate a specific bytecode sequence, replace it with a custom static method call, and rebuild the stack map to prevent verification errors. ```java // // Load some classes // ClassPool classPool = HookManager.getInstance().getClassPool(); CtClass ctCults = classPool.get("com.wurmonline.server.players.Cults"); CtClass ctCultist = classPool.get("com.wurmonline.server.players.Cultist"); CtClass ctSkill = classPool.get("com.wurmonline.server.skills.Skill"); // Parameter types of the method to change CtClass[] paramTypes = { classPool.get("com.wurmonline.server.creatures.Creature"), CtPrimitiveType.intType, classPool.get("com.wurmonline.server.behaviours.Action"), CtPrimitiveType.floatType, classPool.get("com.wurmonline.server.items.Item"), }; // Load the method CtMethod method = ctCults.getMethod("meditate", Descriptor.ofMethod(CtPrimitiveType.booleanType, paramTypes)); // // MethodInfo contains everything java needs to know about the method // CodeAttribute contains the byte code // MethodInfo methodInfo = method.getMethodInfo(); CodeAttribute codeAttribute = methodInfo.getCodeAttribute(); // // We need to map variable names to their indices. // The indices are fixed in the code but since we have debug information we can actually use those // LocalNameLookup localNames = new LocalNameLookup((LocalVariableAttribute) codeAttribute.getAttribute(LocalVariableAttribute.tag)); // // This is the code we want to replace // Bytecode bytecode = new Bytecode(methodInfo.getConstPool()); bytecode.addAload(localNames.get("cultist")); // 1013: aload cultist bytecode.addInvokevirtual(ctCultist, "getLevel", "()B"); // 1015: invokevirtual com/wurmonline/server/players/Cultist.getLevel:()B bytecode.add(Bytecode.BIPUSH, 10); // 1018: bipush 10 bytecode.add(Bytecode.IMUL); // 1020: imul bytecode.add(Bytecode.I2D); // 1021: i2d bytecode.addAload(localNames.get("meditation")); // 1022: aload meditation bytecode.addGetfield(ctSkill, "knowledge", "D"); // 1024: getfield com/wurmonline/server/skills/Skill.knowledge:D bytecode.add(Bytecode.DSUB); // 1027: dsub bytecode.addLdc2w(30.0); // 1028: ldc2_w 30.0 bytecode.add(Bytecode.DCMPG); // 1031: dcmpg bytecode.add(Bytecode.IFLT); // 1032: iflt 1047 (+15, jump targets are relative) bytecode.add(0, 15); // Jump target bytecode.addAload(localNames.get("meditation")); // 1035: aload meditation bytecode.addGetfield(ctSkill, "knowledge", "D"); // 1037: getfield com/wurmonline/server/skills/Skill.knowledge:D bytecode.addLdc2w(90.0); // 1040: ldc2_w 90.0 bytecode.add(Bytecode.DCMPL); // 1043: dcmpl bytecode.add(Bytecode.IFLE); // 1044: ifle 1066 (+22) bytecode.add(0, 22); // Jump target byte[] search = bytecode.get(); // // Create a new bytecode segment for the replacement // bytecode = new Bytecode(methodInfo.getConstPool()); bytecode.addAload(localNames.get("cultist")); // 1013: aload cultist bytecode.addAload(localNames.get("meditation")); // 1015: aload meditation bytecode.addInvokestatic(classPool.get(this.getClass().getName()), "mayIncreaseLevel", Descriptor.ofMethod(CtPrimitiveType.booleanType , new CtClass[] { ctCultist, ctSkill})); // 1017: invokestatic MeditationMod.mayIncreaseLevel:(Lcom/wurmonline/server/players/Cultist;Lcom/wurmonline/server/skills/Skill;)Z // now add some NOPs to fill the gap between current code and the jump at the end // We add nops first to keep the jump offset the same bytecode.addGap(search.length - bytecode.length() - 3); // 1020-1043: nop bytecode.add(Bytecode.IFEQ); // 1044: ifeq 1066 (+22) bytecode.add(0, 22); // Jump target byte[] replacement = bytecode.get(); // Replace the code. This will only replace one occurrance of the code new CodeReplacer(codeAttribute).replaceCode(search, replacement); // Rebuild the stack map. This is very important. Without this there may be verification errors methodInfo.rebuildStackMap(classPool); ``` -------------------------------- ### Static Mod Method Definition Source: https://github.com/ago1024/wurmservermodlauncher/wiki/Development/BytecodeManipulation Defines a static method in the mod to encapsulate the logic, as bytecode manipulation cannot easily insert object references. ```java public static boolean mayIncreaseLevel(Cultist cultist, Skill meditation) { return cultist.getLevel() * levelUpMultiplier + 10 >= meditation.knowledge; } ``` -------------------------------- ### Define a complex BML node Source: https://github.com/ago1024/wurmservermodlauncher/wiki/BML Syntax for a node containing attributes and nested child nodes. ```text type{attribute1="value";attribute2="value";child1;child2{attribute3="value"}} ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.